diff --git a/src/config.rs b/src/config.rs index f03625c9..13e4c036 100644 --- a/src/config.rs +++ b/src/config.rs @@ -70,12 +70,12 @@ extern crate serialize; use serialize::json; + use std::io::{File, Read, Open}; use std::io::net::ip::{Port, SocketAddr}; - use std::to_string::ToString; - use std::option::Option; +use std::default::Default; use crypto::cipher::CIPHER_AES_256_CFB; @@ -108,6 +108,12 @@ pub struct Config { pub fast_open: bool, } +impl Default for Config { + fn default() -> Config { + Config::new() + } +} + impl Config { pub fn new() -> Config { Config {