remove warnings about unused imports/variables
This commit is contained in:
parent
cedb591baf
commit
87ab00be92
@ -1,9 +1,6 @@
|
|||||||
use std::env;
|
|
||||||
use std::ffi::CString;
|
use std::ffi::CString;
|
||||||
use std::io::BufRead;
|
use std::io::BufRead;
|
||||||
use std::io::BufReader;
|
use std::io::BufReader;
|
||||||
use std::io::Error;
|
|
||||||
use std::io::ErrorKind;
|
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
static PROFILEPATH: &'static str = "/etc/qsni.d/";
|
static PROFILEPATH: &'static str = "/etc/qsni.d/";
|
||||||
@ -35,7 +32,7 @@ fn init_profile(profilepath: &str) {
|
|||||||
Ok(ForkResult::Parent { child, .. }) => {
|
Ok(ForkResult::Parent { child, .. }) => {
|
||||||
let waitresult = waitpid(child, Some(WaitPidFlag::empty())).expect("waitpid failed");
|
let waitresult = waitpid(child, Some(WaitPidFlag::empty())).expect("waitpid failed");
|
||||||
match waitresult {
|
match waitresult {
|
||||||
WaitStatus::Exited(pid, code) => {
|
WaitStatus::Exited(_pid, code) => {
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
panic!("profile setup script failed");
|
panic!("profile setup script failed");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user