mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-21 09:59:55 +00:00
Remove useless imports (#11136)
Because `TryInto`/`TryFrom` are in prelude by default from edition 2021 Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
1 parent
98ed4afe45
commit
41c84b0b41
91 files changed
+81
-176
No files matched your search
@@ -119,13 +119,13 @@ pub enum Error<B: BlockT> {
|
||||
Other(String),
|
||||
}
|
||||
|
||||
impl<B: BlockT> std::convert::From<Error<B>> for String {
|
||||
impl<B: BlockT> From<Error<B>> for String {
|
||||
fn from(error: Error<B>) -> String {
|
||||
error.to_string()
|
||||
}
|
||||
}
|
||||
|
||||
impl<B: BlockT> std::convert::From<Error<B>> for ConsensusError {
|
||||
impl<B: BlockT> From<Error<B>> for ConsensusError {
|
||||
fn from(error: Error<B>) -> ConsensusError {
|
||||
ConsensusError::ClientImport(error.to_string())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user