Fix dead code warnings (#373)

This commit is contained in:
David Pedersen 2021-10-07 16:49:57 +02:00 committed by GitHub
parent 5dc5a7cb6e
commit ac291baaec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ async fn handler(Json(user): Json<User>) {
}
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct User {
id: i64,
username: String,

View file

@ -147,6 +147,7 @@ struct User {
}
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct CreateUser {
username: String,
}

View file

@ -55,6 +55,7 @@ async fn show_form() -> Html<&'static str> {
}
#[derive(Deserialize, Debug)]
#[allow(dead_code)]
struct Input {
name: String,
email: String,

View file

@ -168,7 +168,6 @@ where
/// Server-sent event
#[derive(Default, Debug)]
pub struct Event {
name: Option<String>,
id: Option<String>,
data: Option<DataType>,
event: Option<String>,