mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-15 08:15:31 +00:00
add default trait
This commit is contained in:
+8
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user