Skip to content

Commit

Permalink
server: Disable clippy::trivial_casts lint
Browse files Browse the repository at this point in the history
It has annoying false positives.
  • Loading branch information
svix-jplatte committed Aug 5, 2024
1 parent 1a58eb9 commit 7b1d155
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resolver = "2"

[workspace.lints.rust]
rust_2018_idioms = { level = "warn", priority = -1 }
trivial_casts = "warn"
trivial_numeric_casts = "warn"

[workspace.lints.clippy]
Expand Down
1 change: 0 additions & 1 deletion server/svix-server/src/queue/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ async fn migrate_list_to_stream(
for key in legacy_keys {
let task = match task_from_redis_key(&key) {
Ok(t) => t,
#[allow(trivial_casts)]
Err(e) => {
tracing::error!(error = &e as &dyn std::error::Error, "Invalid legacy key");
continue;
Expand Down

0 comments on commit 7b1d155

Please sign in to comment.