Skip to content

Commit

Permalink
fiddling api
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Mar 3, 2019
1 parent 77aecaf commit b8e72b0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/check_all.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use failure::Error;
use fapt::commands;
use fapt::Package;
use fapt::types::Package;
use fapt::System;

fn main() -> Result<(), Error> {
Expand Down
2 changes: 1 addition & 1 deletion examples/list_latest_source_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;

use failure::err_msg;
use fapt::commands;
use fapt::RfcMapExt;
use fapt::rfc822::RfcMapExt;

fn main() -> Result<(), failure::Error> {
let mut fapt = fapt::System::cache_only()?;
Expand Down
2 changes: 1 addition & 1 deletion examples/list_source_packages.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::env;

use fapt::commands;
use fapt::RfcMapExt;
use fapt::rfc822::RfcMapExt;

fn main() -> Result<(), failure::Error> {
let args: Vec<String> = env::args().skip(1).collect();
Expand Down
2 changes: 1 addition & 1 deletion src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use failure::Error;

use crate::classic_sources_list;
use crate::lists;
use crate::rfc822::RfcMapExt;
use crate::system::DownloadedList;
use crate::system::ListingWalker;
use crate::system::Section;
use crate::system::System;
use crate::RfcMapExt;

pub fn add_builtin_keys(system: &mut System) {
system
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ mod system;

pub use crate::lists::sections_in_reader;
pub use crate::parse::rfc822;
pub use crate::parse::rfc822::RfcMapExt;
pub use crate::parse::types::Package;
pub use crate::parse::types;
pub use crate::system::System;
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::classic_sources_list::Entry;
use crate::lists;
use crate::parse::rfc822;
use crate::release;
use crate::Package;
use crate::types::Package;

pub struct System {
pub(crate) lists_dir: PathBuf,
Expand Down
4 changes: 2 additions & 2 deletions tests/objectify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ use std::io;

use failure::format_err;
use failure::Error;
use fapt::Package;
use fapt::types::Package;

fn parse(pkg: &str) -> Result<Package, Error> {
fapt::Package::parse(&mut fapt::rfc822::scan(pkg).collect_to_map()?)
Package::parse(&mut fapt::rfc822::scan(pkg).collect_to_map()?)
}

#[test]
Expand Down

0 comments on commit b8e72b0

Please sign in to comment.