mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 04:28:01 +00:00
Convert Into to From to make clippy happy (#8900)
This commit is contained in:
@@ -349,13 +349,13 @@ macro_rules! impl_outer_origin {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<$crate::sp_std::result::Result<$system::Origin<$runtime>, $name>> for $name {
|
||||
impl From<$name> for $crate::sp_std::result::Result<$system::Origin<$runtime>, $name>{
|
||||
/// NOTE: converting to pallet origin loses the origin filter information.
|
||||
fn into(self) -> $crate::sp_std::result::Result<$system::Origin<$runtime>, Self> {
|
||||
if let $caller_name::system(l) = self.caller {
|
||||
fn from(val: $name) -> Self {
|
||||
if let $caller_name::system(l) = val.caller {
|
||||
Ok(l)
|
||||
} else {
|
||||
Err(self)
|
||||
Err(val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user