keepass-diff
keepass-diff copied to clipboard
style: clippy changes
Changes:
- use
String:new()instead offormat!("") - use
is_empty()instead ofs == "" - use reference iterator instead of
into_iter - replace
write!+ '\n' withwriteln! - remove
mutfrom vars with type&mut ... - replace single branch
matchwithifpattern match - replace
Stack::to_stringwithDisplaytrait - replace match with pattern matching in
fn main - use reference to file name, instead of direct ownership
This contains similar changes to #70, but only sticks to clippy changes, leaving Stack in the code.