diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-11-14 12:44:34 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-11-14 12:44:34 +0200 |
commit | e7a36b21692ce7b0674db5a90ba5b1717ee70371 (patch) | |
tree | 42a946bfa68651d786accf0c7d21b76831d0b4c4 | |
parent | 60679bd02de46a59fadda0f8410e085d29ca4f6f (diff) | |
download | clab-e7a36b21692ce7b0674db5a90ba5b1717ee70371.tar.gz |
chore: remove unnecessary borrow found by clippy
Sponsored-by: author
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 6317fd0..85c3943 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,7 +107,7 @@ impl AddressBook { } fn add_from(&mut self, filename: &Path) -> anyhow::Result<()> { - let text = std::fs::read(&filename)?; + let text = std::fs::read(filename)?; let mut entries: Vec<Entry> = serde_yaml::from_slice(&text)?; self.entries.append(&mut entries); Ok(()) |