Skip to content

Commit f9e0fc5

Browse files
committed
Fix typo in Package field
1 parent 93aefc2 commit f9e0fc5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

crates/opensi-core/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ pub struct Package {
3131
pub language: Option<String>,
3232
#[serde(rename = "@logo")]
3333
pub logo: Option<String>,
34-
#[serde(rename = "@restriciton")]
35-
pub restriciton: Option<String>,
34+
#[serde(rename = "@restriction")]
35+
pub restriction: Option<String>,
3636

3737
// elements
3838
pub info: Info,
@@ -303,7 +303,6 @@ impl PackageNode {
303303
}
304304

305305
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq)]
306-
307306
pub struct Info {
308307
pub comments: Option<String>,
309308
pub extension: Option<String>,

crates/opensi-editor/src/package_tab.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn package_info_edit(package: &mut Package, ui: &mut egui::Ui) {
3737
ui.add(egui::DragValue::new(&mut package.difficulty).range(0..=10));
3838
});
3939
package_edit_row("Ограничения", &mut body, |ui| {
40-
let mut s = package.restriciton.clone().unwrap();
40+
let mut s = package.restriction.clone().unwrap();
4141
ui.text_edit_singleline(&mut s);
4242
});
4343
package_edit_row("Дата создания", &mut body, |ui| {

0 commit comments

Comments
 (0)