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