refactor(lints): fix unused warnings in tests/docs
This commit is contained in:
@@ -41,5 +41,6 @@ async fn fetch_json(url: hyper::Uri) -> Result<Vec<User>> {
|
|||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
struct User {
|
struct User {
|
||||||
id: i32,
|
id: i32,
|
||||||
|
#[allow(unused)]
|
||||||
name: String,
|
name: String,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1005,6 +1005,7 @@ mod tests {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct CanClose {
|
struct CanClose {
|
||||||
|
#[allow(unused)]
|
||||||
val: i32,
|
val: i32,
|
||||||
closed: bool,
|
closed: bool,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user