diff --git a/miner/stratum/src/traits.rs b/miner/stratum/src/traits.rs
index d71af1fee..b8ed4a1b1 100644
--- a/miner/stratum/src/traits.rs
+++ b/miner/stratum/src/traits.rs
@@ -14,8 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Parity Ethereum. If not, see .
-use std;
-use std::error::Error as StdError;
use ethereum_types::H256;
use jsonrpc_tcp_server::PushMessageError;
@@ -30,7 +28,7 @@ pub enum Error {
impl From for Error {
fn from(err: std::io::Error) -> Self {
- Error::Io(err.description().to_owned())
+ Error::Io(err.to_string())
}
}