Remove the unnecessary flatpak feature flag
This commit is contained in:
@@ -33,4 +33,3 @@ strip = true
|
||||
default = []
|
||||
debian = ["pacdef_core/debian"]
|
||||
arch = ["pacdef_core/arch"]
|
||||
flatpak = ["pacdef_core/flatpak"]
|
||||
|
||||
@@ -35,4 +35,3 @@ rust-apt = { version = "0.5", optional = true }
|
||||
default = []
|
||||
arch = ["dep:alpm"]
|
||||
debian = ["dep:rust-apt"]
|
||||
flatpak = []
|
||||
|
||||
@@ -4,5 +4,4 @@ pub mod arch;
|
||||
pub mod debian;
|
||||
pub mod python;
|
||||
pub mod rust;
|
||||
#[cfg(feature = "flatpak")]
|
||||
pub mod flatpak;
|
||||
|
||||
@@ -18,6 +18,5 @@ pub enum Backends {
|
||||
Debian,
|
||||
Python,
|
||||
Rust,
|
||||
#[cfg(feature = "flatpak")]
|
||||
Flatpak,
|
||||
}
|
||||
|
||||
@@ -129,11 +129,8 @@ impl Pacdef {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "flatpak")]
|
||||
{
|
||||
if let Some(flatpak) = backend.as_any_mut().downcast_mut::<crate::backend::Flatpak>() {
|
||||
flatpak.systemwide = self.config.flatpak_systemwide;
|
||||
}
|
||||
if let Some(flatpak) = backend.as_any_mut().downcast_mut::<crate::backend::Flatpak>() {
|
||||
flatpak.systemwide = self.config.flatpak_systemwide;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user