wc: Fix clippy error

This commit is contained in:
Allan Silva 2022-02-07 10:20:52 -03:00
parent 6a6875012e
commit e6c94c1cd7

View file

@ -123,9 +123,9 @@ enum Input {
impl From<&OsStr> for Input {
fn from(input: &OsStr) -> Self {
if input == STDIN_REPR {
Input::Stdin(StdinKind::Explicit)
Self::Stdin(StdinKind::Explicit)
} else {
Input::Path(input.into())
Self::Path(input.into())
}
}
}