Skip to content

Commit

Permalink
server: Fix new compiler / clippy warnings (#1377)
Browse files Browse the repository at this point in the history
## Motivation

Fixes the CI failure in #1376.
  • Loading branch information
svix-jplatte authored Jul 31, 2024
2 parents ec12e5c + adcefa2 commit 5592275
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions server/svix-server/src/core/cache/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ mod tests {
}
}

#[derive(Deserialize, Serialize, Debug, PartialEq)]
struct StringTestVal(String);
string_kv_def!(StringTestKey);
impl StringTestKey {
fn new(id: String) -> StringTestKey {
Expand Down
4 changes: 1 addition & 3 deletions server/svix-server/src/core/cache/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl CacheBehavior for RedisCache {
async fn delete<T: CacheKey>(&self, key: &T) -> Result<()> {
let mut pool = self.redis.get().await?;

pool.del(key.as_ref()).await?;
let _: () = pool.del(key.as_ref()).await?;

Ok(())
}
Expand Down Expand Up @@ -103,8 +103,6 @@ mod tests {
}
}

#[derive(Deserialize, Serialize, Debug, PartialEq)]
struct StringTestVal(String);
string_kv_def!(StringTestKey);
impl StringTestKey {
fn new(id: String) -> StringTestKey {
Expand Down
2 changes: 1 addition & 1 deletion server/svix-server/tests/it/redis_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async fn test_many_queue_consumers_inner(prefix: &str, delay: Option<Duration>)
let mut conn = pool.get().await.unwrap();

let _: () = conn
.del(&format!("{prefix}{{queue}}_svix_v3_main"))
.del(format!("{prefix}{{queue}}_svix_v3_main"))
.await
.unwrap();
}
Expand Down

0 comments on commit 5592275

Please sign in to comment.