2 Commits

Author SHA1 Message Date
c97adefeb4 Add clippy fixes 2021-11-20 11:30:55 +01:00
34662ff728 README: Add link to creates.io 2021-11-20 11:29:57 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -127,3 +127,7 @@ It requires nightly features due to the usage of [`std::path::Path::is_symlink()
* [`serde`](https://docs.rs/serde/) because we're using Rust, after all
* [`git2`](https://docs.rs/git2/), a safe wrapper around `libgit2`, for all git operations
* [`clap`](https://docs.rs/clap/), [`console`](https://docs.rs/console/) and [`shellexpand`](https://docs.rs/shellexpand) for good UX
# Links
* [crates.io](https://crates.io/crates/git-repo-manager)

View File

@@ -376,7 +376,7 @@ fn add_table_header(table: &mut Table) {
]);
}
fn add_repo_status(table: &mut Table, repo_name: &String, repo_handle: &git2::Repository) {
fn add_repo_status(table: &mut Table, repo_name: &str, repo_handle: &git2::Repository) {
let repo_status = get_repo_status(repo_handle);
table.add_row(vec![
@@ -424,7 +424,7 @@ fn add_repo_status(table: &mut Table, repo_name: &String, repo_handle: &git2::Re
]);
}
fn show_single_repo_status(path: &PathBuf) {
fn show_single_repo_status(path: &Path) {
let mut table = Table::new();
add_table_header(&mut table);