diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-11-14 10:45:06 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-11-14 10:45:06 +0000 |
commit | 91b2ffb4d3033bd212c55ae304bf86b7c4bc3502 (patch) | |
tree | 42a946bfa68651d786accf0c7d21b76831d0b4c4 | |
parent | d37a9703ac7959bde32505794bab07130b73af94 (diff) | |
parent | e7a36b21692ce7b0674db5a90ba5b1717ee70371 (diff) | |
download | clab-91b2ffb4d3033bd212c55ae304bf86b7c4bc3502.tar.gz |
Merge branch 'fixes' into 'main'
fix: "authors" field in subplot
See merge request larswirzenius/clab!12
-rw-r--r-- | clab.subplot | 3 | ||||
-rw-r--r-- | src/main.rs | 2 |
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(()) |