mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
#[must_use] all the things! (#1809)
This commit is contained in:
@@ -33,6 +33,7 @@ use axum::{
|
||||
/// # let _: Router = app;
|
||||
/// ```
|
||||
#[derive(Debug)]
|
||||
#[must_use]
|
||||
pub struct Resource<S = (), B = Body> {
|
||||
pub(crate) name: String,
|
||||
pub(crate) router: Router<S, B>,
|
||||
|
||||
Reference in New Issue
Block a user