Done a big clippy pass

This commit is contained in:
Kerollmops 2020-12-01 14:25:17 +01:00
parent 6e3f4e5e45
commit d0240bd9d0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
8 changed files with 59 additions and 42 deletions

View file

@ -49,7 +49,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
let stdin = io::stdin();
let lines = match opt.query {
Some(query) => Box::new(once(Ok(query.to_string()))),
Some(query) => Box::new(once(Ok(query))),
None => Box::new(stdin.lock().lines()) as Box<dyn Iterator<Item = _>>,
};