mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 10:37:01 +05:30
fix: resolve Clippy warnings
This commit is contained in:
parent
efbc6f64f6
commit
38f8e3311e
2 changed files with 3 additions and 3 deletions
|
@ -36,6 +36,6 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn cli_assert() {
|
fn cli_assert() {
|
||||||
<Opts as clap::CommandFactory>::command().debug_assert()
|
<Opts as clap::CommandFactory>::command().debug_assert();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ pub(crate) fn thaw_repos(dir: &str, lockfile: &str) -> anyhow::Result<()> {
|
||||||
for (name, repo) in repos {
|
for (name, repo) in repos {
|
||||||
println!("Cloning {} from {}", &name, &repo.remote_url);
|
println!("Cloning {} from {}", &name, &repo.remote_url);
|
||||||
let output = Command::new("git")
|
let output = Command::new("git")
|
||||||
.args(&[
|
.args([
|
||||||
"clone",
|
"clone",
|
||||||
&repo.remote_url,
|
&repo.remote_url,
|
||||||
PathBuf::from(&dir).join(&name).to_str().unwrap(),
|
PathBuf::from(&dir).join(&name).to_str().unwrap(),
|
||||||
|
@ -76,7 +76,7 @@ pub(crate) fn thaw_repos(dir: &str, lockfile: &str) -> anyhow::Result<()> {
|
||||||
.expect("Failed to run `git clone`. Perhaps git is not installed?");
|
.expect("Failed to run `git clone`. Perhaps git is not installed?");
|
||||||
|
|
||||||
if output.status.success() {
|
if output.status.success() {
|
||||||
println!("Thawed {} successfully.", name);
|
println!("Thawed {name} successfully.");
|
||||||
} else {
|
} else {
|
||||||
println!("{}", std::str::from_utf8(&output.stderr)?);
|
println!("{}", std::str::from_utf8(&output.stderr)?);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue