Fix clippy warnings in generated runtime api code (#5874)

This commit is contained in:
Bastian Köcher
2020-05-03 15:31:31 +02:00
committed by GitHub
parent 34d5db0de6
commit 51db82bdb9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -715,7 +715,7 @@ pub trait SignedExtension: Codec + Debug + Sync + Send + Clone + Eq + PartialEq
info: &DispatchInfoOf<Self::Call>,
len: usize,
) -> Result<Self::Pre, TransactionValidityError> {
self.validate(who, call, info.clone(), len)
self.validate(who, call, info, len)
.map(|_| Self::Pre::default())
.map_err(Into::into)
}
@@ -749,7 +749,7 @@ pub trait SignedExtension: Codec + Debug + Sync + Send + Clone + Eq + PartialEq
info: &DispatchInfoOf<Self::Call>,
len: usize,
) -> Result<Self::Pre, TransactionValidityError> {
Self::validate_unsigned(call, info.clone(), len)
Self::validate_unsigned(call, info, len)
.map(|_| Self::Pre::default())
.map_err(Into::into)
}