axum: add suggested must_use

This commit is contained in:
David Mládek
2026-08-20 10:45:05 +02:00
parent 62c7baa393
commit fe403025ae
+1
View File
@@ -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
}