mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-03 00:00:07 +02:00
Add #[must_use] to types and methods (#3395)
Co-authored-by: Theodore Bjernhed <[email protected]>
This commit is contained in:
co-authored by
Theodore Bjernhed
parent
d7104313cb
commit
fb64e72de9
@@ -16,6 +16,7 @@ impl Error {
|
||||
}
|
||||
|
||||
/// Convert an `Error` back into the underlying boxed trait object.
|
||||
#[must_use]
|
||||
pub fn into_inner(self) -> BoxError {
|
||||
self.inner
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user