mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 05:28:01 +00:00
Remove uses of Error::description() use Display instead (#2887)
* Remove all uses of Error::description() - use Display instead
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user