Skip to content

Commit

Permalink
Fix typo in Package field
Browse files Browse the repository at this point in the history
  • Loading branch information
snpefk committed Sep 29, 2024
1 parent 93aefc2 commit f9e0fc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions crates/opensi-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pub struct Package {
pub language: Option<String>,
#[serde(rename = "@logo")]
pub logo: Option<String>,
#[serde(rename = "@restriciton")]
pub restriciton: Option<String>,
#[serde(rename = "@restriction")]
pub restriction: Option<String>,

// elements
pub info: Info,
Expand Down Expand Up @@ -303,7 +303,6 @@ impl PackageNode {
}

#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq)]

pub struct Info {
pub comments: Option<String>,
pub extension: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion crates/opensi-editor/src/package_tab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn package_info_edit(package: &mut Package, ui: &mut egui::Ui) {
ui.add(egui::DragValue::new(&mut package.difficulty).range(0..=10));
});
package_edit_row("Ограничения", &mut body, |ui| {
let mut s = package.restriciton.clone().unwrap();
let mut s = package.restriction.clone().unwrap();
ui.text_edit_singleline(&mut s);
});
package_edit_row("Дата создания", &mut body, |ui| {
Expand Down

0 comments on commit f9e0fc5

Please sign in to comment.