Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dob9601 committed Apr 3, 2022
1 parent c12878e commit adeb915
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/structs/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Config {
.replacen(",", "dna ", 1)
.chars()
.rev()
.collect::<String>()
.collect::<String>(),
);
}

Expand All @@ -62,6 +62,9 @@ mod tests {

let commit_message = config.generate_commit_message(vec!["neovim", "kitty"]);

assert_eq!("🔁 Sync dotfiles for neovim and kitty", commit_message.as_str());
assert_eq!(
"🔁 Sync dotfiles for neovim and kitty",
commit_message.as_str()
);
}
}
10 changes: 8 additions & 2 deletions src/structs/dotfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ mod tests {
post_install: None,
};

assert_eq!("1ef98a8d0946d6512ca5da8242eb7a52a506de54", dotfile.hash_pre_install());
assert_eq!(
"1ef98a8d0946d6512ca5da8242eb7a52a506de54",
dotfile.hash_pre_install()
);
}

#[test]
Expand Down Expand Up @@ -276,7 +279,10 @@ mod tests {
]),
};

assert_eq!("1ef98a8d0946d6512ca5da8242eb7a52a506de54", dotfile.hash_post_install());
assert_eq!(
"1ef98a8d0946d6512ca5da8242eb7a52a506de54",
dotfile.hash_post_install()
);
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions src/structs/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod config;
mod dotfile;
mod manifest;
mod metadata;
mod config;

pub use config::Config;
pub use dotfile::Dotfile;
pub use manifest::Manifest;
pub use config::Config;

pub use metadata::{AggregatedDotfileMetadata, DotfileMetadata};

0 comments on commit adeb915

Please sign in to comment.