uutils / findutils

Rust implementation of findutils
MIT License
299 stars 36 forks source link

Fix clippy warning `empty String is being created manually` #224

Closed sylvestre closed 7 months ago

sylvestre commented 1 year ago
warning: empty String is being created manually
   --> src/find/matchers/printf.rs:470:36
    |
470 |                 .unwrap_or_else(|| "".to_owned())
    |                                    ^^^^^^^^^^^^^ help: consider using: `String::new()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new
    = note: `-W clippy::manual-string-new` implied by `-W clippy::pedantic`