Skip to content

Commit

Permalink
style(s3s): fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Oct 8, 2024
1 parent 6604fdd commit df3dbb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/s3s-aws/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ pub struct SetStatusCode<'a, 'b, E, R>(
pub &'b aws_smithy_runtime_api::client::result::ServiceError<E, R>,
);

impl<'a, 'b, E> SetStatusCode<'a, 'b, E, aws_smithy_runtime_api::client::orchestrator::HttpResponse> {
impl<E> SetStatusCode<'_, '_, E, aws_smithy_runtime_api::client::orchestrator::HttpResponse> {
pub fn call(self) {
let Self(err, e) = self;
err.set_status_code(hyper_status_code_from_aws(e.raw().status()));
// TODO: headers?
}
}

impl<'a, 'b, E> SetStatusCode<'a, 'b, E, aws_smithy_types::event_stream::RawMessage> {
impl<E> SetStatusCode<'_, '_, E, aws_smithy_types::event_stream::RawMessage> {
#[allow(clippy::unused_self)]
pub fn call(self) {}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/s3s-fs/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl<'a> FileWriter<'a> {
}
}

impl<'a> Drop for FileWriter<'a> {
impl Drop for FileWriter<'_> {
fn drop(&mut self) {
if self.clean_tmp {
let _ = std::fs::remove_file(&self.tmp_path);
Expand Down
2 changes: 1 addition & 1 deletion crates/s3s/src/auth/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct S3AuthContext<'a> {
pub(crate) extensions: &'a mut Extensions,
}

impl<'a> S3AuthContext<'a> {
impl S3AuthContext<'_> {
/// Returns the credentials of current request.
///
/// `None` means anonymous request.
Expand Down

0 comments on commit df3dbb1

Please sign in to comment.