fmt
This commit is contained in:
parent
d935fa5fb7
commit
4ced3f985c
@ -9,6 +9,10 @@ use apt_pkg_native::simple;
|
||||
fn main() {
|
||||
let mut cache = Cache::get_singleton();
|
||||
for item in cache.iter().map(simple::BinaryPackageVersions::new) {
|
||||
println!("{} [{}]", item.pkg, item.versions.iter().map(|x| format!("{}", x)).join(", "));
|
||||
println!(
|
||||
"{} [{}]",
|
||||
item.pkg,
|
||||
item.versions.iter().map(|x| format!("{}", x)).join(", ")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -193,9 +193,7 @@ impl<'c> VerView<'c> {
|
||||
}
|
||||
|
||||
pub fn section(&self) -> Option<String> {
|
||||
unsafe {
|
||||
make_owned_ascii_string(raw::ver_iter_section(self.ptr))
|
||||
}
|
||||
unsafe { make_owned_ascii_string(raw::ver_iter_section(self.ptr)) }
|
||||
}
|
||||
|
||||
pub fn source_package(&self) -> String {
|
||||
|
Loading…
Reference in New Issue
Block a user