Skip to content

Commit

Permalink
Refactor code to use String::new instead of manually creating an emp…
Browse files Browse the repository at this point in the history
…ty string
  • Loading branch information
HelloShiv committed Apr 15, 2023
1 parent a1ae326 commit 696e947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/find/matchers/printf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ fn format_directive<'entry>(
.into_iter()
.find(|fs| fs.dev_id == dev_id)
.map(|fs| fs.fs_type)
.unwrap_or_else(|| "".to_owned())
.unwrap_or_else(|| String::new())
.into()
}

Expand Down

0 comments on commit 696e947

Please sign in to comment.