remove impl_backend_constants parameter
was unused
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#[macro_export]
|
||||
macro_rules! impl_backend_constants {
|
||||
($name:ident) => {
|
||||
() => {
|
||||
fn get_binary(&self) -> Text {
|
||||
BINARY
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ const SWITCHES_INSTALL: Switches = &["-S"];
|
||||
const SWITCHES_REMOVE: Switches = &["-Rsn"];
|
||||
|
||||
impl Backend for Pacman {
|
||||
impl_backend_constants!(Pacman);
|
||||
impl_backend_constants!();
|
||||
|
||||
fn get_all_installed_packages(&self) -> HashSet<Package> {
|
||||
convert_to_pacdef_packages(get_all_installed_packages_from_alpm())
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ const SWITCHES_INSTALL: Switches = &["install"];
|
||||
const SWITCHES_REMOVE: Switches = &["uninstall"];
|
||||
|
||||
impl Backend for Rust {
|
||||
impl_backend_constants!(Rust);
|
||||
impl_backend_constants!();
|
||||
|
||||
fn get_all_installed_packages(&self) -> HashSet<Package> {
|
||||
extract_packages_names(&run_cargo_install_list())
|
||||
|
||||
Reference in New Issue
Block a user