Remove uses of Error::description() use Display instead (#2887)

* Remove all uses of Error::description() - use Display instead
This commit is contained in:
mattrutherford
2019-06-17 22:04:29 +01:00
committed by GitHub
parent 57f8e9ccb1
commit 7eb2ff760a
3 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ pub fn block_id_to_lookup_key<Block>(
/// Maps database error to client error
pub fn db_err(err: io::Error) -> client::error::Error {
use std::error::Error;
client::error::Error::Backend(err.description().into())
client::error::Error::Backend(format!("{}", err))
}
/// Open RocksDB database.