Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Nov 9, 2024
1 parent 0f8a754 commit 50bfc74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/wpt/src/net_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ impl<D: Send + Sync + 'static> WptNetProvider<D> {
_ => {
let relative_path = url.path().strip_prefix('/').unwrap();
let path = self.base_path.join(relative_path);
let file_content = std::fs::read(&path).map_err(|err| {
let file_content = std::fs::read(&path).inspect_err(|err| {
eprintln!("Error loading {}: {}", path.display(), &err);
err
})?;
handler.bytes(Bytes::from(file_content), callback);
}
Expand Down

0 comments on commit 50bfc74

Please sign in to comment.