Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed May 27, 2024
1 parent b342555 commit f992b61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/ls_remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl super::command::Command for LsRemote {
stable_versions.extend(nightly_versions);

Check failure on line 45 in src/commands/ls_remote.rs

View workflow job for this annotation

GitHub Actions / fmt

Diff in /home/runner/work/pactup/pactup/src/commands/ls_remote.rs
stable_versions
} else {
let stable_versions = remote_pact_index::list(&config.pact_4x_repo)?;
stable_versions

remote_pact_index::list(&config.pact_4x_repo)?
};

if let Some(filter) = &self.filter {
Expand All @@ -70,14 +70,14 @@ impl super::command::Command for LsRemote {
for version in &all_versions {
print!("{}", version.tag_name);
if version.draft {
print!("{}", format!(" (draft)").cyan());
print!("{}", " (draft)".to_string().cyan());
}
if version.prerelease {
print!("{}", format!(" (prerelease)").cyan());
print!("{}", " (prerelease)".to_string().cyan());
}

if version.tag_name.is_nightly() {
print!("{}", format!(" (nightly)").cyan());
print!("{}", " (nightly)".to_string().cyan());
}

println!();
Expand Down

0 comments on commit f992b61

Please sign in to comment.