Commit fcb2129d authored by Landon James's avatar Landon James
Browse files

More nightly lints

parent 8f80c4ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ dependencies = [

[[package]]
name = "aws-smithy-checksums"
version = "0.63.6"
version = "0.63.7"
dependencies = [
 "aws-smithy-http",
 "aws-smithy-types",
+2 −2
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ dependencies = [

[[package]]
name = "aws-smithy-checksums"
version = "0.63.6"
version = "0.63.7"
dependencies = [
 "aws-smithy-http",
 "aws-smithy-types",
@@ -492,7 +492,7 @@ dependencies = [

[[package]]
name = "aws-smithy-http-server-python"
version = "0.66.1"
version = "0.66.2"
dependencies = [
 "aws-smithy-http",
 "aws-smithy-http-server",
+1 −1
Original line number Diff line number Diff line
[package]
name = "aws-smithy-checksums"
version = "0.63.6"
version = "0.63.7"
authors = [
    "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
    "Zelda Hessler <zhessler@amazon.com>",
+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ pub const SHA_256_HEADER_NAME: &str = "x-amz-checksum-sha256";
pub const CRC_64_NVME_HEADER_NAME: &str = "x-amz-checksum-crc64nvme";

// Preserved for compatibility purposes. This should never be used by users, only within smithy-rs
#[warn(dead_code)]
pub(crate) static MD5_HEADER_NAME: &str = "content-md5";

/// When a response has to be checksum-verified, we have to check possible headers until we find the
+4 −0
Original line number Diff line number Diff line
@@ -324,23 +324,27 @@ impl Checksum for Sha256 {
    }
}

#[allow(dead_code)]
#[derive(Debug, Default)]
struct Md5 {
    hasher: md5::Md5,
}

impl Md5 {
    #[warn(dead_code)]
    fn update(&mut self, bytes: &[u8]) {
        use md5::Digest;
        self.hasher.update(bytes);
    }

    #[warn(dead_code)]
    fn finalize(self) -> Bytes {
        use md5::Digest;
        Bytes::copy_from_slice(self.hasher.finalize().as_slice())
    }

    // Size of the checksum in bytes
    #[warn(dead_code)]
    fn size() -> u64 {
        use md5::Digest;
        md5::Md5::output_size() as u64
Loading