From fe403025ae6443f54a7ae66c500b92af653376f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Thu, 20 Aug 2026 09:23:18 +0200 Subject: [PATCH] axum: add suggested `must_use` --- axum/src/extract/path/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index 61bbef9b..856b360b 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -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 }