2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00

Remove more unneeded 'static

This commit is contained in:
asonix 2024-02-27 20:46:04 -06:00
parent 6ee7c5c4a0
commit 25ef3861f1
2 changed files with 5 additions and 5 deletions

View file

@ -30,7 +30,7 @@ pub(crate) struct Session {
async fn process_ingest<S>(
state: &State<S>,
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<Bytes, Error>>,
) -> Result<
(
InternalFormat,
@ -108,7 +108,7 @@ where
async fn dummy_ingest<S>(
state: &State<S>,
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<Bytes, Error>>,
) -> Result<
(
InternalFormat,
@ -150,7 +150,7 @@ where
#[tracing::instrument(skip(state, stream))]
pub(crate) async fn ingest<S>(
state: &State<S>,
stream: impl Stream<Item = Result<Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<Bytes, Error>>,
declared_alias: Option<Alias>,
) -> Result<Session, Error>
where

View file

@ -460,7 +460,7 @@ struct UrlQuery {
}
async fn ingest_inline<S: Store + 'static>(
stream: impl Stream<Item = Result<web::Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<web::Bytes, Error>>,
state: &State<S>,
) -> Result<(Alias, DeleteToken, Details), Error> {
let session = ingest::ingest(state, stream, None).await?;
@ -513,7 +513,7 @@ async fn download_stream<S>(
#[tracing::instrument(name = "Downloading file inline", skip(stream, state))]
async fn do_download_inline<S: Store + 'static>(
stream: impl Stream<Item = Result<web::Bytes, Error>> + 'static,
stream: impl Stream<Item = Result<web::Bytes, Error>>,
state: &State<S>,
) -> Result<HttpResponse, Error> {
metrics::counter!(crate::init_metrics::FILES, "download" => "inline").increment(1);