mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Fix dead code warnings (#373)
This commit is contained in:
parent
5dc5a7cb6e
commit
ac291baaec
4 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,7 @@ async fn handler(Json(user): Json<User>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct User {
|
struct User {
|
||||||
id: i64,
|
id: i64,
|
||||||
username: String,
|
username: String,
|
||||||
|
|
|
@ -147,6 +147,7 @@ struct User {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct CreateUser {
|
struct CreateUser {
|
||||||
username: String,
|
username: String,
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,6 +55,7 @@ async fn show_form() -> Html<&'static str> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
|
#[allow(dead_code)]
|
||||||
struct Input {
|
struct Input {
|
||||||
name: String,
|
name: String,
|
||||||
email: String,
|
email: String,
|
||||||
|
|
|
@ -168,7 +168,6 @@ where
|
||||||
/// Server-sent event
|
/// Server-sent event
|
||||||
#[derive(Default, Debug)]
|
#[derive(Default, Debug)]
|
||||||
pub struct Event {
|
pub struct Event {
|
||||||
name: Option<String>,
|
|
||||||
id: Option<String>,
|
id: Option<String>,
|
||||||
data: Option<DataType>,
|
data: Option<DataType>,
|
||||||
event: Option<String>,
|
event: Option<String>,
|
||||||
|
|
Loading…
Reference in a new issue