mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Fix Compiler Warnings (new rustc) (#8907)
* unused mmr * more unused * dyn in executor * remove `doc(inline)` * fix dyn for sp-api-test * update benchmarks * Update primitives/core/benches/bench.rs * Update primitives/core/benches/bench.rs * update another bench * fix benchmark? Co-authored-by: adoerr <0xad@gmx.net>
This commit is contained in:
@@ -397,7 +397,6 @@ macro_rules! parameter_types {
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[doc(inline)]
|
||||
#[macro_export]
|
||||
macro_rules! parameter_types_impl_thread_local {
|
||||
( $( $any:tt )* ) => {
|
||||
@@ -406,7 +405,6 @@ macro_rules! parameter_types_impl_thread_local {
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[doc(inline)]
|
||||
#[macro_export]
|
||||
macro_rules! parameter_types_impl_thread_local {
|
||||
(
|
||||
|
||||
@@ -41,14 +41,14 @@ pub mod example {
|
||||
|
||||
decl_module! {
|
||||
pub struct Module<T: Config> for enum Call where origin: <T as frame_system::Config>::Origin {
|
||||
#[weight = *weight]
|
||||
fn noop(_origin, weight: Weight) { }
|
||||
#[weight = *_weight]
|
||||
fn noop(_origin, _weight: Weight) { }
|
||||
|
||||
#[weight = *start_weight]
|
||||
#[weight = *_start_weight]
|
||||
fn foobar(
|
||||
origin,
|
||||
err: bool,
|
||||
start_weight: Weight,
|
||||
_start_weight: Weight,
|
||||
end_weight: Option<Weight>,
|
||||
) -> DispatchResultWithPostInfo {
|
||||
let _ = ensure_signed(origin)?;
|
||||
|
||||
Reference in New Issue
Block a user