apt-transport 0.1.0

APT transport abstraction, allowing for custom APT transport implementations in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use env_logger::Env;

pub fn init_logger() {
    let _ = env_logger::Builder::from_env(Env::default().default_filter_or("trace"))
        .is_test(true)
        .try_init();
}

pub fn cover_debug(thing: &impl std::fmt::Debug) {
    let _ = format!("{thing:?}");
}

pub fn cover_error(error: &impl std::error::Error) {
    let _ = error.source();
}