fix(git): removed ugly comments
Feels like a code smell to use this ugly and non-idiomatic style. Signed-off-by: Christina Sørensen <christina@cafkafk.com>
This commit is contained in:
parent
63688b0d6e
commit
7a31030aca
1 changed files with 0 additions and 14 deletions
14
src/git.rs
14
src/git.rs
|
@ -101,10 +101,6 @@ pub struct GitRepo {
|
||||||
pub flags: Option<Vec<RepoFlags>>,
|
pub flags: Option<Vec<RepoFlags>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////
|
|
||||||
////////////////////////////////////
|
|
||||||
////////////////////////////////////
|
|
||||||
|
|
||||||
/// Represents a single operation on a repository
|
/// Represents a single operation on a repository
|
||||||
pub struct SeriesItem<'series> {
|
pub struct SeriesItem<'series> {
|
||||||
/// The string to be displayed to the user
|
/// The string to be displayed to the user
|
||||||
|
@ -113,10 +109,6 @@ pub struct SeriesItem<'series> {
|
||||||
pub closure: Box<dyn Fn(&GitRepo) -> (bool)>,
|
pub closure: Box<dyn Fn(&GitRepo) -> (bool)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////
|
|
||||||
////////////////////////////////////
|
|
||||||
////////////////////////////////////
|
|
||||||
|
|
||||||
fn handle_file_exists(selff: &Link, tx_path: &Path, rx_path: &Path) -> bool {
|
fn handle_file_exists(selff: &Link, tx_path: &Path, rx_path: &Path) -> bool {
|
||||||
match rx_path.read_link() {
|
match rx_path.read_link() {
|
||||||
Ok(file)
|
Ok(file)
|
||||||
|
@ -571,9 +563,6 @@ impl Config {
|
||||||
.get(link_name)
|
.get(link_name)
|
||||||
.expect("failed to get category"))
|
.expect("failed to get category"))
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
/// Tries to pull all repositories, skips if fail.
|
/// Tries to pull all repositories, skips if fail.
|
||||||
pub fn pull_all(&self) {
|
pub fn pull_all(&self) {
|
||||||
debug!("exectuting pull_all");
|
debug!("exectuting pull_all");
|
||||||
|
@ -647,9 +636,6 @@ impl Config {
|
||||||
];
|
];
|
||||||
self.series_on_all(series);
|
self.series_on_all(series);
|
||||||
}
|
}
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
//////////////////////////////////////////////////////////////
|
|
||||||
/// Tries to link all repositories, skips if fail.
|
/// Tries to link all repositories, skips if fail.
|
||||||
pub fn link_all(&self) {
|
pub fn link_all(&self) {
|
||||||
debug!("exectuting link_all");
|
debug!("exectuting link_all");
|
||||||
|
|
Loading…
Reference in a new issue