mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Fix dead code warnings (#373)
This commit is contained in:
@@ -41,6 +41,7 @@ async fn handler(Json(user): Json<User>) {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[allow(dead_code)]
|
||||
struct User {
|
||||
id: i64,
|
||||
username: String,
|
||||
|
||||
@@ -147,6 +147,7 @@ struct User {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[allow(dead_code)]
|
||||
struct CreateUser {
|
||||
username: String,
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ async fn show_form() -> Html<&'static str> {
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[allow(dead_code)]
|
||||
struct Input {
|
||||
name: String,
|
||||
email: String,
|
||||
|
||||
Reference in New Issue
Block a user