Fix formatting
This commit is contained in:
@@ -58,7 +58,7 @@ impl Flatpak {
|
|||||||
|
|
||||||
fn get_installed_packages(&self, include_implicit: bool) -> Result<HashSet<Package>> {
|
fn get_installed_packages(&self, include_implicit: bool) -> Result<HashSet<Package>> {
|
||||||
let mut cmd = Command::new(BINARY);
|
let mut cmd = Command::new(BINARY);
|
||||||
cmd.args(&["list", "--columns=application"]);
|
cmd.args(["list", "--columns=application"]);
|
||||||
if !include_implicit {
|
if !include_implicit {
|
||||||
cmd.arg("--app");
|
cmd.arg("--app");
|
||||||
}
|
}
|
||||||
@@ -67,10 +67,9 @@ impl Flatpak {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let output = String::from_utf8(cmd.output()?.stdout)?;
|
let output = String::from_utf8(cmd.output()?.stdout)?;
|
||||||
Ok(
|
Ok(output
|
||||||
output.lines()
|
.lines()
|
||||||
.map(|pkg| Package::from(pkg))
|
.map(Package::from)
|
||||||
.collect::<HashSet<Package>>()
|
.collect::<HashSet<Package>>())
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
pub mod arch;
|
pub mod arch;
|
||||||
#[cfg(feature = "debian")]
|
#[cfg(feature = "debian")]
|
||||||
pub mod debian;
|
pub mod debian;
|
||||||
|
pub mod flatpak;
|
||||||
pub mod python;
|
pub mod python;
|
||||||
pub mod rust;
|
pub mod rust;
|
||||||
pub mod flatpak;
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ where
|
|||||||
let mut map = HashMap::new();
|
let mut map = HashMap::new();
|
||||||
|
|
||||||
for (value, key) in to_assign {
|
for (value, key) in to_assign {
|
||||||
let inner = map.entry(key).or_insert(vec![]);
|
let inner: &mut Vec<V> = map.entry(key).or_default();
|
||||||
inner.push(value);
|
inner.push(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,10 @@ impl Pacdef {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(flatpak) = backend.as_any_mut().downcast_mut::<crate::backend::Flatpak>() {
|
if let Some(flatpak) = backend
|
||||||
|
.as_any_mut()
|
||||||
|
.downcast_mut::<crate::backend::Flatpak>()
|
||||||
|
{
|
||||||
flatpak.systemwide = self.config.flatpak_systemwide;
|
flatpak.systemwide = self.config.flatpak_systemwide;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user