Revert "add more generic backend stuff"
This reverts commit 265d67089b.
This commit is contained in:
+3
-11
@@ -6,17 +6,9 @@ use crate::Package;
|
||||
pub struct Rust;
|
||||
|
||||
impl Backend for Rust {
|
||||
fn get_binary() -> Binary {
|
||||
"cargo"
|
||||
}
|
||||
|
||||
fn get_switches_install() -> Switches {
|
||||
&["install"]
|
||||
}
|
||||
|
||||
fn get_switches_remove() -> Switches {
|
||||
&["uninstall"]
|
||||
}
|
||||
const BINARY: Binary = "cargo";
|
||||
const SWITCHES_INSTALL: Switches = &["install"];
|
||||
const SWITCHES_REMOVE: Switches = &["uninstall"];
|
||||
|
||||
fn get_all_installed_packages() -> HashSet<Package> {
|
||||
extract_packages_names(&run_cargo_install_list())
|
||||
|
||||
Reference in New Issue
Block a user