Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Jan 15, 2023
1 parent a4ccc7f commit f7b8794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ mod clap {
type Value = BString;

fn parse_ref(&self, _cmd: &Command, _arg: Option<&Arg>, value: &OsStr) -> Result<Self::Value, Error> {
git::env::os_str_to_bstring(value).ok_or(Error::new(ErrorKind::InvalidUtf8))
git::env::os_str_to_bstring(value).ok_or_else(|| Error::new(ErrorKind::InvalidUtf8))
}
}

Expand Down

0 comments on commit f7b8794

Please sign in to comment.