Skip to content

Commit

Permalink
miner: fix deprecation warning Error::description (openethereum#11380)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored and ordian committed Jan 14, 2020
1 parent d8a0d38 commit a921408
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions miner/stratum/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.

use std;
use std::error::Error as StdError;
use ethereum_types::H256;
use jsonrpc_tcp_server::PushMessageError;

Expand All @@ -30,7 +28,7 @@ pub enum Error {

impl From<std::io::Error> for Error {
fn from(err: std::io::Error) -> Self {
Error::Io(err.description().to_owned())
Error::Io(err.to_string())
}
}

Expand Down

0 comments on commit a921408

Please sign in to comment.