From edf202b255e96774721cdaa0a8bd80d7c33444a8 Mon Sep 17 00:00:00 2001 From: Revertron Date: Thu, 1 Apr 2021 15:44:14 +0200 Subject: [PATCH] Optimized imports. --- .cargo/config.toml | 2 ++ src/p2p/network.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .cargo/config.toml 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};