Clean dependencies and imports
This commit is contained in:
18
src/main.rs
18
src/main.rs
@@ -1,19 +1,14 @@
|
||||
#![feature(test)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
extern crate jemallocator;
|
||||
|
||||
#[global_allocator]
|
||||
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
|
||||
|
||||
mod configuration;
|
||||
mod platform;
|
||||
mod wireguard;
|
||||
|
||||
use log;
|
||||
|
||||
use std::env;
|
||||
|
||||
mod configuration;
|
||||
mod platform;
|
||||
mod wireguard;
|
||||
|
||||
use platform::tun::PlatformTun;
|
||||
use platform::uapi::{BindUAPI, PlatformUAPI};
|
||||
use platform::*;
|
||||
@@ -34,7 +29,10 @@ fn main() {
|
||||
return;
|
||||
}
|
||||
|
||||
let _ = env_logger::builder().is_test(true).try_init();
|
||||
// start logging
|
||||
env_logger::builder()
|
||||
.try_init()
|
||||
.expect("Failed to initialize event logger");
|
||||
|
||||
// create UAPI socket
|
||||
let uapi = plt::UAPI::bind(name.as_str()).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user