Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Oct 28, 2024
1 parent 97ceccb commit 9efc40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl<I: AsRef<str>, Id: fmt::Display + Eq> Cache<Id> for (Id, &'_ Source<I>) {

fn fetch(&mut self, id: &Id) -> Result<&Source<I>, Box<dyn fmt::Debug + '_>> {
if id == &self.0 {
Ok(&self.1)
Ok(self.1)
} else {
Err(Box::new(format!("Failed to fetch source '{}'", id)))
}
Expand Down

0 comments on commit 9efc40c

Please sign in to comment.