summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clab.subplot3
-rw-r--r--src/main.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/clab.subplot b/clab.subplot
index 0673c4e..828eaff 100644
--- a/clab.subplot
+++ b/clab.subplot
@@ -1,5 +1,6 @@
title: "clab; – command line address book"
-author: Lars Wirzenius
+authors:
+ - Lars Wirzenius
markdowns:
- clab.md
bindings:
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(())