mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-23 00:00:15 +02:00
axum: add suggested must_use
This commit is contained in:
@@ -408,6 +408,7 @@ pub struct FailedToDeserializePathParams(PathDeserializationError);
|
||||
|
||||
impl FailedToDeserializePathParams {
|
||||
/// Get a reference to the underlying error kind.
|
||||
#[must_use]
|
||||
pub fn kind(&self) -> &ErrorKind {
|
||||
&self.0.kind
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user