mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-09 00:00:12 +02:00
style: use Self to avoid unnecessary repetition (#3396)
This commit is contained in:
@@ -109,7 +109,7 @@ where
|
||||
.aggregate();
|
||||
|
||||
match T::decode(&mut buf) {
|
||||
Ok(value) => Ok(Protobuf(value)),
|
||||
Ok(value) => Ok(Self(value)),
|
||||
Err(err) => Err(ProtobufDecodeError::from_err(err).into()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user