From 6ee7c5c4a02e3df4e4f15ad44933083edf7c809d Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 27 Feb 2024 20:41:39 -0600 Subject: [PATCH] Remove unneeded 'static --- src/backgrounded.rs | 4 ++-- src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backgrounded.rs b/src/backgrounded.rs index a5b4bab..7b7bf5c 100644 --- a/src/backgrounded.rs +++ b/src/backgrounded.rs @@ -34,7 +34,7 @@ impl Backgrounded { pub(crate) async fn proxy(state: &State, stream: P) -> Result where S: Store, - P: Stream> + 'static, + P: Stream>, { let mut this = Self { repo: state.repo.clone(), @@ -50,7 +50,7 @@ impl Backgrounded { async fn do_proxy(&mut self, store: &S, stream: P) -> Result<(), Error> where S: Store, - P: Stream> + 'static, + P: Stream>, { self.upload_id = Some(self.repo.create_upload().await?); diff --git a/src/lib.rs b/src/lib.rs index 4d9f40a..038d575 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -532,7 +532,7 @@ async fn do_download_inline( #[tracing::instrument(name = "Downloading file in background", skip(stream, state))] async fn do_download_backgrounded( - stream: impl Stream> + 'static, + stream: impl Stream>, state: web::Data>, ) -> Result { metrics::counter!(crate::init_metrics::FILES, "download" => "background").increment(1);