From 7a31030aca77ca9a2cd86187c4315f6fff8decc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Tue, 11 Jul 2023 16:56:23 +0200 Subject: [PATCH] fix(git): removed ugly comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Feels like a code smell to use this ugly and non-idiomatic style. Signed-off-by: Christina Sørensen --- src/git.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/git.rs b/src/git.rs index a0c95f0..45b986e 100644 --- a/src/git.rs +++ b/src/git.rs @@ -101,10 +101,6 @@ pub struct GitRepo { pub flags: Option>, } -//////////////////////////////////// -//////////////////////////////////// -//////////////////////////////////// - /// Represents a single operation on a repository pub struct SeriesItem<'series> { /// The string to be displayed to the user @@ -113,10 +109,6 @@ pub struct SeriesItem<'series> { pub closure: Box (bool)>, } -//////////////////////////////////// -//////////////////////////////////// -//////////////////////////////////// - fn handle_file_exists(selff: &Link, tx_path: &Path, rx_path: &Path) -> bool { match rx_path.read_link() { Ok(file) @@ -571,9 +563,6 @@ impl Config { .get(link_name) .expect("failed to get category")) } - ////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////// /// Tries to pull all repositories, skips if fail. pub fn pull_all(&self) { debug!("exectuting pull_all"); @@ -647,9 +636,6 @@ impl Config { ]; self.series_on_all(series); } - ////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////// /// Tries to link all repositories, skips if fail. pub fn link_all(&self) { debug!("exectuting link_all");