Skip to content

Commit 1e9cbf9

Browse files
author
Jakub Konka
committed
Fix Rust lints
1 parent aaca46d commit 1e9cbf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rust/server_utils/src/jwt/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ impl Config {
5454

5555
#[cfg(test)]
5656
mod test {
57-
use super::*;
58-
5957
use serde_json::json;
6058

59+
use super::*;
60+
6161
#[test]
6262
fn validates_presence() {
6363
let expected = JwtClaim {

rust/services/dns/server/src/server/handlers/dns_query.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ mod tests {
148148
use super::*;
149149
use crate::server::test_helpers::{JWT_SECRET, app_with_jwt_auth};
150150

151+
#[allow(clippy::cast_sign_loss, clippy::cast_possible_wrap)]
151152
fn token(invalid_after: i64) -> String {
152153
let exp = get_current_timestamp() as i64 + invalid_after;
153154
let key = EncodingKey::from_secret(JWT_SECRET);

0 commit comments

Comments
 (0)