From 60679bd02de46a59fadda0f8410e085d29ca4f6f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 14 Nov 2022 12:44:03 +0200 Subject: fix: "authors" field in subplot Sponsored-by: author --- clab.subplot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.1 From e7a36b21692ce7b0674db5a90ba5b1717ee70371 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 14 Nov 2022 12:44:34 +0200 Subject: chore: remove unnecessary borrow found by clippy Sponsored-by: author --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = serde_yaml::from_slice(&text)?; self.entries.append(&mut entries); Ok(()) -- cgit v1.2.1