Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 23, 2024
1 parent bf62e18 commit 11e5377
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/multiselect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::collections::HashSet;
use std::fmt::Display;
use std::io;
use std::io::Write;

Expand Down Expand Up @@ -479,20 +478,20 @@ mod tests {
fn non_display() {
struct Thing {
num: u32,
thing: Option<()>,
_thing: Option<()>,
}
let things = [
Thing {
num: 1,
thing: Some(()),
_thing: Some(()),
},
Thing {
num: 2,
thing: None,
_thing: None,
},
Thing {
num: 3,
thing: None,
_thing: None,
},
];
let select = MultiSelect::new("things")
Expand Down
7 changes: 3 additions & 4 deletions src/select.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::fmt::Display;
use std::io;
use std::io::Write;

Expand Down Expand Up @@ -364,16 +363,16 @@ mod tests {
fn non_display() {
struct Thing {
num: u32,
thing: Option<()>,
_thing: Option<()>,
}
let things = [
Thing {
num: 1,
thing: Some(()),
_thing: Some(()),
},
Thing {
num: 2,
thing: None,
_thing: None,
},
];
let select = Select::new("things").description("pick a thing").options(
Expand Down

0 comments on commit 11e5377

Please sign in to comment.