Clean code by commenting out some variable, and allowing some dead code.
This commit is contained in:
@@ -10,13 +10,10 @@ pub struct UserLink {
|
||||
}
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
pub struct User {
|
||||
#[serde(rename = "_type")]
|
||||
#[allow(unused_variables)]
|
||||
pub d_type: String,
|
||||
#[allow(unused_variables)]
|
||||
pub id: u64,
|
||||
#[allow(unused_variables)]
|
||||
pub name: String,
|
||||
// #[serde(rename = "_type")]
|
||||
// pub d_type: String,
|
||||
// pub id: u64,
|
||||
// pub name: String,
|
||||
#[serde(rename = "_links")]
|
||||
pub d_links: UserLink,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user