mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
chore: add lints in workspace cargo config (#223)
This commit is contained in:
@ -75,7 +75,7 @@ impl super::RedisConnectionPool {
|
||||
let serialized = Encode::<V>::encode_to_vec(&value)
|
||||
.change_context(errors::RedisError::JsonSerializationFailed)?;
|
||||
|
||||
self.set_key(key, &serialized as &[u8]).await
|
||||
self.set_key(key, serialized.as_slice()).await
|
||||
}
|
||||
|
||||
#[instrument(level = "DEBUG", skip(self))]
|
||||
@ -242,7 +242,7 @@ impl super::RedisConnectionPool {
|
||||
let serialized = Encode::<V>::encode_to_vec(&value)
|
||||
.change_context(errors::RedisError::JsonSerializationFailed)?;
|
||||
|
||||
self.set_hash_field_if_not_exist(key, field, &serialized as &[u8])
|
||||
self.set_hash_field_if_not_exist(key, field, serialized.as_slice())
|
||||
.await
|
||||
}
|
||||
|
||||
@ -561,6 +561,7 @@ impl super::RedisConnectionPool {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#![allow(clippy::unwrap_used)]
|
||||
|
||||
use crate::{errors::RedisError, RedisConnectionPool, RedisEntryId, RedisSettings};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user