summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-11-12 21:43:45 +0200
committerLars Wirzenius <liw@liw.fi>2022-11-12 21:43:45 +0200
commitfbb5b933d09ab9dfc01d531430509ed610680d87 (patch)
tree341e126219299e0797178e8a348eb58f671e85f7 /src/bin/obnam-server.rs
parenta71ffcd6f2017d65fe4591ba36d3daddea8b1b29 (diff)
downloadobnam2-fbb5b933d09ab9dfc01d531430509ed610680d87.tar.gz
fix: unnecessary borrows, other things found by clippy
Sponsored-by: author
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r--src/bin/obnam-server.rs2
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);
}