Skip to content

Commit e3ab409

Browse files
committed
refactor(lints): fix unused warnings in tests/docs
1 parent 0a4b56a commit e3ab409

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/client_json.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ async fn fetch_json(url: hyper::Uri) -> Result<Vec<User>> {
4141
#[derive(Deserialize, Debug)]
4242
struct User {
4343
id: i32,
44+
#[allow(unused)]
4445
name: String,
4546
}

src/client/pool.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ mod tests {
10051005

10061006
#[derive(Debug)]
10071007
struct CanClose {
1008+
#[allow(unused)]
10081009
val: i32,
10091010
closed: bool,
10101011
}

0 commit comments

Comments
 (0)