Unverified Commit 5779b018 authored by Nugine's avatar Nugine
Browse files

s3s: fix lints

parent 21061617
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ jobs:
        with:
          tool: just
      - run: cargo fmt --all -- --check
      - run: cargo clippy -- -D warnings
      - run: cargo clippy --all-features --all-targets -- -D warnings
      - run: cargo test --all-features
      - run: |
          just codegen
+4 −4
Original line number Diff line number Diff line
@@ -174,11 +174,11 @@ mod tests {
    #[test]
    fn auth_header() {
        {
            let auth = r#"AWS4-HMAC-SHA256 
            let auth = "AWS4-HMAC-SHA256 
                Credential=AKIAIOSFODNN7EXAMPLE/20130524/us-east-1/s3/aws4_request, 
                SignedHeaders=host;range;x-amz-date,
                Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024
            "#;
            ";
            let ans = AuthorizationV4::parse(auth).unwrap();

            assert_eq!(ans.algorithm, "AWS4-HMAC-SHA256");
@@ -190,11 +190,11 @@ mod tests {
            assert_eq!(ans.signature, "fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024");
        }
        {
            let auth = r#"AWS4-HMAC-SHA256 
            let auth = "AWS4-HMAC-SHA256 
                Credential=AKIAIOSFODNN7EXAMPLE/20200931/us-east-1/s3/aws4_request, 
                SignedHeaders=host;range;x-amz-date,
                Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024
            "#;
            ";

            assert!(AuthorizationV4::parse(auth).is_err());
        }
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ fmt:

dev:
    cargo fmt
    cargo clippy
    cargo clippy --all-features --all-targets
    cargo test

doc: