Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Nov 1, 2021
1 parent e672489 commit 43207a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/fetch/fs_fetch_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ impl FetchHandler for FsFetchHandler {
Option<Rc<CancelHandle>>,
) {
let cancel_handle = CancelHandle::new_rc();
let url_ = url.clone();

let response_fut = async move {
let path = url_.to_file_path()?;
let path = url.to_file_path()?;
let file = tokio::fs::File::open(path).map_err(|_| ()).await?;
let stream = ReaderStream::new(file);
let body = reqwest::Body::wrap_stream(stream);
Expand Down

0 comments on commit 43207a1

Please sign in to comment.