~danyspin97/initrz

eb48652c0473f9aed055eb715626851d75adb1d6 — Danilo Spinella a month ago bc9c930
Remove unused imports
M src/initrz/src/module_loader.rs => src/initrz/src/module_loader.rs +1 -4
@@ 1,17 1,14 @@
use anyhow::{bail, Context, Result};
use dowser::Dowser;
use glob::{glob, Pattern};
use log::{debug, warn};
use nix::kmod::{init_module, ModuleInitFlags};
use nix::kmod::init_module;
use xz2::bufread::XzDecoder;

use std::collections::{HashMap, HashSet};
use std::convert::TryFrom;
use std::ffi::CString;
use std::fs::File;
use std::io::{BufRead, BufReader, Read};
use std::mem::drop;
use std::os::unix::io::AsRawFd;
use std::path::{Path, PathBuf};
use std::sync::RwLock;


M src/initrz/src/uevent_listener.rs => src/initrz/src/uevent_listener.rs +1 -2
@@ 1,7 1,6 @@
use anyhow::{bail, Context, Result};
use bstr::ByteSlice;
use libc::MSG_DONTWAIT;
use log::{trace, warn};
use log::warn;
use netlink_sys::{protocols::NETLINK_KOBJECT_UEVENT, Socket, SocketAddr};

use std::collections::HashMap;

M src/mkinitrz/src/initramfs.rs => src/mkinitrz/src/initramfs.rs +1 -3
@@ 1,8 1,6 @@
use std::{
    collections::HashSet,
    convert::TryInto,
    env, fs,
    os::unix::fs::MetadataExt,
    path::{Path, PathBuf},
};



@@ 13,7 11,7 @@ use crate::config::Config;
use crate::depend;
use crate::initramfs_modules;
use crate::initramfs_type::InitramfsType;
use crate::newc::{self, Archive, Entry, EntryBuilder};
use crate::newc::{Archive, Entry, EntryBuilder};

const ROOT_DIRECTORIES: [&str; 9] = [
    "/dev",

M src/mkinitrz/src/initramfs_modules.rs => src/mkinitrz/src/initramfs_modules.rs +0 -1
@@ 1,6 1,5 @@
use std::{
    collections::HashSet,
    convert::TryFrom,
    fs::File,
    io::{BufRead, BufReader},
    path::{Path, PathBuf},

M src/mkinitrz/src/main.rs => src/mkinitrz/src/main.rs +0 -1
@@ 14,7 14,6 @@ use std::{

use anyhow::{Context, Result};
use clap::Clap;
use log;
use simplelog::{ColorChoice, LevelFilter, TermLogger, TerminalMode};
use zstd::stream::write::Encoder;