From 43207a153c257da73a360f512250fe2ce055160e Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sun, 31 Oct 2021 08:14:58 +1100 Subject: [PATCH] clippy --- ext/fetch/fs_fetch_handler.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/fetch/fs_fetch_handler.rs b/ext/fetch/fs_fetch_handler.rs index d1e6f21525bc2d..82cbc4ecb39305 100644 --- a/ext/fetch/fs_fetch_handler.rs +++ b/ext/fetch/fs_fetch_handler.rs @@ -29,10 +29,8 @@ impl FetchHandler for FsFetchHandler { Option>, ) { 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);