refactor: String::from("") > String::new()

This commit is contained in:
Jack Wills
2022-10-07 03:04:06 +00:00
parent a77f690a49
commit 62fb224786
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ fn generate_block<'a>(
SelectablePanel::Logs => {
format!(" {} {} ", panel.title(), app_data.lock().get_log_title())
}
SelectablePanel::Commands => String::from(""),
SelectablePanel::Commands => String::new(),
};
let mut block = Block::default()
.borders(Borders::ALL)