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/client.rs | |
parent | a71ffcd6f2017d65fe4591ba36d3daddea8b1b29 (diff) | |
download | obnam2-fbb5b933d09ab9dfc01d531430509ed610680d87.tar.gz |
fix: unnecessary borrows, other things found by clippy
Sponsored-by: author
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs index 7ae6581..a924052 100644 --- a/src/client.rs +++ b/src/client.rs @@ -195,7 +195,7 @@ impl BackupClient { let gen = self.fetch_generation_chunk(gen_id).await?; // Fetch the SQLite file, storing it in the named file. - let mut dbfile = File::create(&dbname) + let mut dbfile = File::create(dbname) .map_err(|err| ClientError::FileCreate(dbname.to_path_buf(), err))?; for id in gen.chunk_ids() { let chunk = self.fetch_chunk(id).await?; |