mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 03:21:06 +00:00
Fix clippy warnings in generated runtime api code (#5874)
This commit is contained in:
@@ -173,7 +173,7 @@ fn generate_wasm_interface(impls: &[ItemImpl]) -> Result<TokenStream> {
|
|||||||
#( #attrs )*
|
#( #attrs )*
|
||||||
#[cfg(not(feature = "std"))]
|
#[cfg(not(feature = "std"))]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn #fn_name(input_data: *mut u8, input_len: usize) -> u64 {
|
pub unsafe fn #fn_name(input_data: *mut u8, input_len: usize) -> u64 {
|
||||||
let mut #input = if input_len == 0 {
|
let mut #input = if input_len == 0 {
|
||||||
&[0u8; 0]
|
&[0u8; 0]
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -715,7 +715,7 @@ pub trait SignedExtension: Codec + Debug + Sync + Send + Clone + Eq + PartialEq
|
|||||||
info: &DispatchInfoOf<Self::Call>,
|
info: &DispatchInfoOf<Self::Call>,
|
||||||
len: usize,
|
len: usize,
|
||||||
) -> Result<Self::Pre, TransactionValidityError> {
|
) -> Result<Self::Pre, TransactionValidityError> {
|
||||||
self.validate(who, call, info.clone(), len)
|
self.validate(who, call, info, len)
|
||||||
.map(|_| Self::Pre::default())
|
.map(|_| Self::Pre::default())
|
||||||
.map_err(Into::into)
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
@@ -749,7 +749,7 @@ pub trait SignedExtension: Codec + Debug + Sync + Send + Clone + Eq + PartialEq
|
|||||||
info: &DispatchInfoOf<Self::Call>,
|
info: &DispatchInfoOf<Self::Call>,
|
||||||
len: usize,
|
len: usize,
|
||||||
) -> Result<Self::Pre, TransactionValidityError> {
|
) -> Result<Self::Pre, TransactionValidityError> {
|
||||||
Self::validate_unsigned(call, info.clone(), len)
|
Self::validate_unsigned(call, info, len)
|
||||||
.map(|_| Self::Pre::default())
|
.map(|_| Self::Pre::default())
|
||||||
.map_err(Into::into)
|
.map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user