Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Feb 18, 2024
1 parent 2570c18 commit 64b3e24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion volo-grpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Ref:
// - https://github.com/rust-lang/rust-clippy/issues/12154
// - https://github.com/rust-lang/rust-clippy/pull/12177
#![allow(clippy::unconditional_recursion)]
#![allow(unconditional_recursion)]

#[macro_use]
mod cfg;
Expand Down
4 changes: 2 additions & 2 deletions volo-thrift/src/codec/default/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<E: ZeroCopyEncoder, W: AsyncWrite + Unpin + Send + Sync + 'static> Encoder
.map_err(|e| {
// record the error time
cx.stats_mut().record_encode_end_at();
ThriftException::from(e)
e
});
if write_result.is_ok() {
cx.stats_mut().record_encode_end_at();
Expand Down Expand Up @@ -219,7 +219,7 @@ impl<D: ZeroCopyDecoder, R: AsyncRead + Unpin + Send + Sync + 'static> Decoder
cx.stats_mut().record_decode_end_at();
trace!("[VOLO] thrift codec decode message cost: {:?}", end - start);

Ok(res?)
res
}
}

Expand Down

0 comments on commit 64b3e24

Please sign in to comment.