Skip to content

Commit

Permalink
Silence a newly-triggered lint on nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Aug 11, 2024
1 parent 284b37c commit 42f8e7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ impl Cfgfifo {
pub fn identify<P: AsRef<Path>>(&self, path: P) -> Result<Format, IdentifyError> {
let ext = match (get_ext(path.as_ref()), self.fallback) {
(Ok(ext), _) => ext,
#[allow(unreachable_patterns)]
(Err(_), Some(f)) => return Ok(f),
(Err(e), _) => return Err(e),
};
Expand Down

0 comments on commit 42f8e7d

Please sign in to comment.