Skip to content

Commit

Permalink
refactor(s3): make an actuall fix to the lifetime issue - unify lifet…
Browse files Browse the repository at this point in the history
…imes
  • Loading branch information
tomkarw committed Sep 29, 2022
1 parent a6adbf2 commit c02dfc3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions s3/src/request/tokio_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ impl<'a> Request for HyperRequest<'a> {
}

impl<'a> HyperRequest<'a> {
pub fn new<'b>(
bucket: &'b Bucket,
path: &'b str,
command: Command<'b>,
) -> Result<HyperRequest<'b>, S3Error> {
pub fn new(
bucket: &'a Bucket,
path: &'a str,
command: Command<'a>,
) -> Result<HyperRequest<'a>, S3Error> {
bucket.credentials_refresh()?;
Ok(HyperRequest {
Ok(Self {
bucket,
path,
command,
Expand Down

0 comments on commit c02dfc3

Please sign in to comment.