diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..0c72941 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-Ctarget-cpu=native", "-Ctarget-feature=+aes,+sha,+sse,+sse2,+avx,+avx2"] \ No newline at end of file diff --git a/src/p2p/network.rs b/src/p2p/network.rs index 70b7435..3e220d8 100644 --- a/src/p2p/network.rs +++ b/src/p2p/network.rs @@ -2,7 +2,7 @@ extern crate serde; extern crate serde_json; use std::{io, thread}; -use std::io::{Read, Write, Error}; +use std::io::{Read, Write}; use std::sync::{Arc, Mutex, MutexGuard}; use std::time::{Duration, Instant};