From c96b464bed616d40f1204136c0c5a739fe6fe7ba Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 21 Sep 2021 23:55:00 +0200 Subject: Fix clippy complaints --- src/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/history.rs') diff --git a/src/history.rs b/src/history.rs index ce5ae26..3f5e43f 100644 --- a/src/history.rs +++ b/src/history.rs @@ -22,7 +22,7 @@ impl FileHistory { .context("Failed reading file history.")?; let file_history = serde_json::from_slice::(&buffer); - Ok(file_history.context("Corrupted file history.")?) + file_history.context("Corrupted file history.") } pub fn write_to_file(&self, file: &mut File) -> anyhow::Result<()> { -- cgit 1.4.1