From 93aefc210ad5ad6e00b4553391dc8ad0df742191 Mon Sep 17 00:00:00 2001 From: Fedor Tolstonozhenko Date: Sat, 28 Sep 2024 22:31:14 +0200 Subject: [PATCH] Fix package_tab compilations errors --- crates/opensi-editor/src/package_tab.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/opensi-editor/src/package_tab.rs b/crates/opensi-editor/src/package_tab.rs index c26d5bc..3c8a85d 100644 --- a/crates/opensi-editor/src/package_tab.rs +++ b/crates/opensi-editor/src/package_tab.rs @@ -37,7 +37,8 @@ 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| { - ui.text_edit_singleline(&mut package.restriciton); + let mut s = package.restriciton.clone().unwrap(); + ui.text_edit_singleline(&mut s); }); package_edit_row("Дата создания", &mut body, |ui| { ui.text_edit_singleline(&mut package.date); @@ -46,7 +47,8 @@ fn package_info_edit(package: &mut Package, ui: &mut egui::Ui) { ui.text_edit_singleline(&mut package.publisher); }); package_edit_row("Язык", &mut body, |ui| { - ui.text_edit_singleline(&mut package.language); + let mut s = package.language.clone().unwrap(); + ui.text_edit_singleline(&mut s); }); });