miner: fix deprecation warning Error::description (#11380)

This commit is contained in:
Niklas Adolfsson 2020-01-14 13:54:43 +01:00 committed by Andronik Ordian
parent d8a0d38229
commit a9214081c0
1 changed files with 1 additions and 3 deletions

View File

@ -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;
@ -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())
}
}