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
@@ -109,7 +109,7 @@ impl<T> StatefulList<T> {
pub fn get_state_title(&self) -> String {
if self.items.is_empty() {
String::from("")
String::new()
} else {
let len = self.items.len();
let c = self