keepass-diff icon indicating copy to clipboard operation
keepass-diff copied to clipboard

style: clippy changes

Open mrghosti3 opened this issue 6 months ago • 1 comments

Changes:

  • use String:new() instead of format!("")
  • use is_empty() instead of s == ""
  • use reference iterator instead of into_iter
  • replace write! + '\n' with writeln!
  • remove mut from vars with type &mut ...
  • replace single branch match with if pattern match
  • replace Stack::to_string with Display trait
  • replace match with pattern matching in fn main
  • use reference to file name, instead of direct ownership

mrghosti3 avatar Aug 17 '24 20:08 mrghosti3