Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
erer1243 committed Jan 22, 2025
1 parent ba10632 commit 5df3b73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/swss-common-bridge/src/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Actor for ProducerTableBridge {
async fn handle_message(&mut self, message: IncomingMessage, outbox: Outbox) {
match &message.body {
MessageBody::Request(DataRequest { payload }) => {
let response = match handle_kfvs(&mut self.table, &payload).await {
let response = match handle_kfvs(&mut self.table, payload).await {
Ok(()) => OutgoingMessage::ok_response(message),
Err((code, msg)) => OutgoingMessage::error_response(message, code, msg),
};
Expand Down
4 changes: 2 additions & 2 deletions crates/swss-common/src/types/cxxstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ impl<'de> serde::Deserialize<'de> for CxxString {
{
struct CxxStringVisitor;

impl<'de> serde::de::Visitor<'de> for CxxStringVisitor {
impl serde::de::Visitor<'_> for CxxStringVisitor {
type Value = CxxString;

fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
Expand All @@ -193,7 +193,7 @@ impl<'de> serde::Deserialize<'de> for CxxString {
}
}

Ok(deserializer.deserialize_bytes(CxxStringVisitor)?)
deserializer.deserialize_bytes(CxxStringVisitor)
}
}

Expand Down

0 comments on commit 5df3b73

Please sign in to comment.