mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add use_self clippy lint (#8325)
This commit is contained in:
@ -46,24 +46,24 @@ impl RethError {
|
||||
where
|
||||
E: std::error::Error + Send + Sync + 'static,
|
||||
{
|
||||
RethError::Other(Box::new(error))
|
||||
Self::Other(Box::new(error))
|
||||
}
|
||||
|
||||
/// Create a new `RethError` from a given message.
|
||||
pub fn msg(msg: impl Display) -> Self {
|
||||
RethError::Other(msg.to_string().into())
|
||||
Self::Other(msg.to_string().into())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<BlockchainTreeError> for RethError {
|
||||
fn from(error: BlockchainTreeError) -> Self {
|
||||
RethError::Canonical(CanonicalError::BlockchainTree(error))
|
||||
Self::Canonical(CanonicalError::BlockchainTree(error))
|
||||
}
|
||||
}
|
||||
|
||||
impl From<FsPathError> for RethError {
|
||||
fn from(err: FsPathError) -> Self {
|
||||
RethError::other(err)
|
||||
Self::other(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user