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

* Remove all uses of Error::description() - use Display instead
This commit is contained in:
mattrutherford authored and GitHub committed 2019-06-17 22:04:29 +01:00
1 parent 57f8e9ccb1
commit 7eb2ff760a
3 files changed
+10 -14

No files matched your search

+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.