Skip to content

Commit

Permalink
Merge pull request #17 from KomodoPlatform/x
Browse files Browse the repository at this point in the history
fix clippy
  • Loading branch information
onur-ozkan authored Sep 15, 2023
2 parents 7d9fa1d + 2e337e9 commit 30d19e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
rust: [nightly-2022-03-17]
steps:
- uses: actions/checkout@v2
Expand All @@ -102,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest]
rust: [nightly-2022-03-17]
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion main/src/security/jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,5 @@ async fn test_generate_jwt() {
// Test if validate_jwt works as expected
let claims = JwtClaims::new(cfg.token_expiration_time());
let token = generate_jwt(&cfg, &claims).await.unwrap();
assert!(validate_jwt(&cfg, String::from(token)).await);
assert!(validate_jwt(&cfg, token).await);
}
4 changes: 2 additions & 2 deletions main/src/security/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ fn test_message_sign_and_verify() {
)
.unwrap();

signed_message.sign_message(&key_pair.secret()).unwrap();
signed_message.sign_message(key_pair.secret()).unwrap();
assert!(!signed_message.verify_message().unwrap());

signed_message.timestamp_message = timestamp_message + 5 * 60;
signed_message.sign_message(&key_pair.secret()).unwrap();
signed_message.sign_message(key_pair.secret()).unwrap();
assert!(signed_message.verify_message().unwrap());
}

0 comments on commit 30d19e0

Please sign in to comment.