Skip to content

Commit

Permalink
refactor(lints): fix unused warnings in tests/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Sep 14, 2021
1 parent 0a4b56a commit e3ab409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/client_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ async fn fetch_json(url: hyper::Uri) -> Result<Vec<User>> {
#[derive(Deserialize, Debug)]
struct User {
id: i32,
#[allow(unused)]
name: String,
}
1 change: 1 addition & 0 deletions src/client/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,7 @@ mod tests {

#[derive(Debug)]
struct CanClose {
#[allow(unused)]
val: i32,
closed: bool,
}
Expand Down

0 comments on commit e3ab409

Please sign in to comment.