Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Wackyator committed Nov 28, 2023
1 parent 895d1ba commit 6a02acf
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/cli/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,18 @@ pub async fn execute(args: Args) -> miette::Result<()> {
// updating prefix after removing from toml
let _ = get_up_to_date_prefix(&project, false, false).await?;

for result in &results {
if let Ok((removed, spec)) = result {
let table_name = if let Some(p) = &args.platform {
format!("target.{}.{}", p.as_str(), spec_type.name())
} else {
spec_type.name().to_string()
};
for (removed, spec) in results.iter().flatten() {
let table_name = if let Some(p) = &args.platform {
format!("target.{}.{}", p.as_str(), spec_type.name())
} else {
spec_type.name().to_string()
};

eprintln!(
"Removed {} from [{}]",
console::style(format!("{removed} {spec}")).bold(),
console::style(table_name).bold(),
);
}
eprintln!(
"Removed {} from [{}]",
console::style(format!("{removed} {spec}")).bold(),
console::style(table_name).bold(),
);
}

for result in &results {
Expand Down

0 comments on commit 6a02acf

Please sign in to comment.