Skip to content

Commit

Permalink
refactor: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 committed Sep 14, 2023
1 parent 5180cc1 commit 3d1fe7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options/file_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl Options {
let classify = Classify::deduce(matches)?;
let show_icons = ShowIcons::deduce(matches, vars)?;
let embed_hyperlinks = EmbedHyperlinks::deduce(matches)?;
Ok(Self { classify, show_icons, embed_hyperlinks, is_a_tty })
Ok(Self { classify, is_a_tty, show_icons, embed_hyperlinks })
}
}

Expand All @@ -36,7 +36,7 @@ impl ShowIcons {
let mode = match mode_opt {
Some(word) => match word.to_str() {
Some("always") => AlwaysOrAuto::Always,
Some("auto") | Some("automatic") => AlwaysOrAuto::Automatic,
Some("auto" | "automatic") => AlwaysOrAuto::Automatic,
Some("never") => return Ok(Self::Never),
_ => return Err(OptionsError::BadArgument(&flags::ICONS, word.into()))
}
Expand Down

0 comments on commit 3d1fe7d

Please sign in to comment.