Remove the unnecessary flatpak feature flag

This commit is contained in:
teackot
2023-05-16 19:22:56 +03:00
parent b413ef00be
commit 0d509fdfa6
5 changed files with 2 additions and 9 deletions
-1
View File
@@ -33,4 +33,3 @@ strip = true
default = [] default = []
debian = ["pacdef_core/debian"] debian = ["pacdef_core/debian"]
arch = ["pacdef_core/arch"] arch = ["pacdef_core/arch"]
flatpak = ["pacdef_core/flatpak"]
-1
View File
@@ -35,4 +35,3 @@ rust-apt = { version = "0.5", optional = true }
default = [] default = []
arch = ["dep:alpm"] arch = ["dep:alpm"]
debian = ["dep:rust-apt"] debian = ["dep:rust-apt"]
flatpak = []
@@ -4,5 +4,4 @@ pub mod arch;
pub mod debian; pub mod debian;
pub mod python; pub mod python;
pub mod rust; pub mod rust;
#[cfg(feature = "flatpak")]
pub mod flatpak; pub mod flatpak;
-1
View File
@@ -18,6 +18,5 @@ pub enum Backends {
Debian, Debian,
Python, Python,
Rust, Rust,
#[cfg(feature = "flatpak")]
Flatpak, Flatpak,
} }
+2 -5
View File
@@ -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;
}
} }
} }