From d106f4a1cef087e64afde2f63fee5e8658dd8a17 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 10 Oct 2021 21:37:07 +0200 Subject: Fix clippy complaints --- src/files.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/files.rs') diff --git a/src/files.rs b/src/files.rs index 29f5048..1c1d98a 100644 --- a/src/files.rs +++ b/src/files.rs @@ -15,7 +15,7 @@ pub struct Locations { impl Locations { pub fn get_repository_index_path(&self) -> PathBuf { - return self.ka_path.join("index"); + self.ka_path.join("index") } pub fn get_repository_files(&self, fs: &FS) -> Result, Error> { @@ -172,7 +172,7 @@ impl FileUntracked { pub fn create_history_file(&self, fs: &FS, locations: &Locations) -> Result { let history_path = locations.history_from_working(&self.path)?; - Ok(fs.create_file(&history_path)?) + fs.create_file(&history_path) } } -- cgit 1.4.1