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
@@ -41,7 +41,7 @@ pub mod log_sanitizer {
/// Remove all ansi formatting from a given string and create tui-rs spans
pub fn remove_ansi<'a>(input: &str) -> Vec<Spans<'a>> {
let mut output = String::from("");
let mut output = String::new();
for i in categorise_text(input) {
output.push_str(i.text);
}