Skip to content

Commit

Permalink
s3s: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Sep 29, 2023
1 parent 2106161 commit 5779b01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions crates/s3s/src/sig_v4/authorization_v4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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());
}
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ fmt:

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

doc:
Expand Down

0 comments on commit 5779b01

Please sign in to comment.