diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-11-12 21:43:45 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-11-12 21:43:45 +0200 |
commit | fbb5b933d09ab9dfc01d531430509ed610680d87 (patch) | |
tree | 341e126219299e0797178e8a348eb58f671e85f7 /src/bin | |
parent | a71ffcd6f2017d65fe4591ba36d3daddea8b1b29 (diff) | |
download | obnam2-fbb5b933d09ab9dfc01d531430509ed610680d87.tar.gz |
fix: unnecessary borrows, other things found by clippy
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/obnam-server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index 102e8b6..9b5a557 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -146,7 +146,7 @@ pub async fn search_chunks( let mut query = query.iter(); let found = if let Some((key, value)) = query.next() { - if query.next() != None { + if query.next().is_some() { error!("search has more than one key to search for"); return Ok(ChunkResult::BadRequest); } |