edition = 2018

This commit is contained in:
Chris West (Faux) 2019-01-21 22:22:47 +00:00
parent be7b547623
commit dac9411a56
9 changed files with 10 additions and 20 deletions

View File

@ -11,6 +11,8 @@ readme = "README.md"
repository = "https://github.com/FauxFaux/apt-pkg-native-rs"
version = "0.3.0"
edition = "2018"
[badges.travis-ci]
repository = "FauxFaux/apt-pkg-native-rs"

View File

@ -1,6 +1,3 @@
extern crate apt_pkg_native;
extern crate boolinator;
use apt_pkg_native::Cache;
use boolinator::Boolinator;

View File

@ -1,6 +1,3 @@
extern crate apt_pkg_native;
extern crate itertools;
use itertools::Itertools;
use apt_pkg_native::simple;

View File

@ -1,4 +1,3 @@
extern crate apt_pkg_native;
use std::env;
use apt_pkg_native::simple;

View File

@ -1,3 +1,5 @@
use std::collections::HashMap;
use std::collections::HashSet;
/// A port of a randomly selected Python program:
///
/// ```python
@ -23,12 +25,8 @@
/// for ver in sorted(sources[src]):
/// print('{}={}'.format(src, ver))
/// ```
extern crate apt_pkg_native;
use std::env;
use std::collections::HashMap;
use std::collections::HashSet;
use apt_pkg_native::Cache;
fn main() {

View File

@ -31,16 +31,12 @@
//! `libapt-pkg` also just segfaults if you do anything wrong, or re-use anything at the wrong time,
//! or etc. I've tried to hide this, but I advise you not to push or outsmart the borrow checker.
#[macro_use]
extern crate lazy_static;
extern crate libc;
mod citer;
mod raw;
mod sane;
pub mod simple;
pub use sane::Cache;
pub use crate::sane::Cache;
#[cfg(test)]
mod tests {

View File

@ -4,6 +4,7 @@
/// * `*mut c_chars` are to be freed by `libc::free`.
use std::sync::Mutex;
use lazy_static::lazy_static;
use libc::c_char;
use libc::c_void;

View File

@ -4,10 +4,10 @@ use std::marker::PhantomData;
use std::sync::MutexGuard;
use libc;
use raw;
use citer::CIterator;
use citer::RawIterator;
use crate::citer::CIterator;
use crate::citer::RawIterator;
use crate::raw;
/// A reference to the package cache singleton,
/// from which most functionality can be accessed.

View File

@ -2,7 +2,7 @@
use std::fmt;
use sane;
use crate::sane;
#[derive(Clone, Debug)]
pub struct BinaryPackage {