Migrate to String::new()

This commit is contained in:
micialware committed 2026-09-20 22:24:42 +03:00
1 parent 1d4b37e381
commit a5526dc5e9
8 files changed
+19 -19

No files matched your search

+2 -2
View File
@@ -413,7 +413,7 @@ impl DictionaryState {
tag_map: HashMap::new(),
words_tags: vec![],
reverse: false,
search: "".to_string(),
search: String::new(),
no_typing: true,
reverse_list: true,
auto_save_queue: HashMap::new(),
@@ -717,7 +717,7 @@ impl DictionaryState {
}
fn selection_editor(&self) -> iced::Element<'_, DictionaryMessage> {
let mut display = "".to_string();
let mut display = String::new();
let mut editable = false;
if let Some(selected) = self.selected_cell.as_ref() {
let mut dictionary = self.state.dictionary.write();