Skip to content

Commit

Permalink
style: cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Oct 20, 2024
1 parent ac76193 commit aac5415
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 25 deletions.
6 changes: 1 addition & 5 deletions src/backends/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ impl Backend for Cargo {
Ok(())
}

fn remove_packages(
packages: &BTreeSet<String>,
_: bool,
_: &Config,
) -> Result<()> {
fn remove_packages(packages: &BTreeSet<String>, _: bool, _: &Config) -> Result<()> {
if !packages.is_empty() {
run_command(
["cargo", "uninstall"]
Expand Down
6 changes: 1 addition & 5 deletions src/backends/dnf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ impl Backend for Dnf {
Ok(())
}

fn remove_packages(
packages: &BTreeSet<String>,
no_confirm: bool,
_: &Config,
) -> Result<()> {
fn remove_packages(packages: &BTreeSet<String>, no_confirm: bool, _: &Config) -> Result<()> {
if !packages.is_empty() {
run_command(
["dnf", "remove"]
Expand Down
6 changes: 1 addition & 5 deletions src/backends/pipx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ impl Backend for Pipx {
Ok(())
}

fn remove_packages(
packages: &BTreeSet<String>,
_: bool,
_: &Config,
) -> Result<()> {
fn remove_packages(packages: &BTreeSet<String>, _: bool, _: &Config) -> Result<()> {
if !packages.is_empty() {
run_command(
["pipx", "uninstall"]
Expand Down
6 changes: 1 addition & 5 deletions src/backends/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ impl Backend for Rustup {
Ok(())
}

fn remove_packages(
packages: &BTreeSet<String>,
_: bool,
_: &Config,
) -> Result<()> {
fn remove_packages(packages: &BTreeSet<String>, _: bool, _: &Config) -> Result<()> {
if !packages.is_empty() {
for toolchain in packages.iter() {
run_command(
Expand Down
6 changes: 1 addition & 5 deletions src/backends/xbps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ impl Backend for Xbps {
Ok(())
}

fn remove_packages(
packages: &BTreeSet<String>,
no_confirm: bool,
_: &Config,
) -> Result<()> {
fn remove_packages(packages: &BTreeSet<String>, no_confirm: bool, _: &Config) -> Result<()> {
if !packages.is_empty() {
run_command(
["xbps-remove", "-R"]
Expand Down

0 comments on commit aac5415

Please sign in to comment.