Commit df3dbb1e authored by Nugine's avatar Nugine
Browse files

style(s3s): fix lints

parent 6604fdd5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ 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()));
@@ -42,7 +42,7 @@ impl<'a, 'b, E> SetStatusCode<'a, 'b, E, aws_smithy_runtime_api::client::orchest
    }
}

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) {}
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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.