mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +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:
@@ -156,19 +156,19 @@ fn test_client_side_function_signature() {
|
||||
|
||||
#[test]
|
||||
fn check_runtime_api_info() {
|
||||
assert_eq!(&Api::<Block>::ID, &runtime_decl_for_Api::ID);
|
||||
assert_eq!(Api::<Block>::VERSION, runtime_decl_for_Api::VERSION);
|
||||
assert_eq!(Api::<Block>::VERSION, 1);
|
||||
assert_eq!(&<dyn Api::<Block>>::ID, &runtime_decl_for_Api::ID);
|
||||
assert_eq!(<dyn Api::<Block>>::VERSION, runtime_decl_for_Api::VERSION);
|
||||
assert_eq!(<dyn Api::<Block>>::VERSION, 1);
|
||||
|
||||
assert_eq!(
|
||||
ApiWithCustomVersion::<Block>::VERSION,
|
||||
<dyn ApiWithCustomVersion::<Block>>::VERSION,
|
||||
runtime_decl_for_ApiWithCustomVersion::VERSION,
|
||||
);
|
||||
assert_eq!(
|
||||
&ApiWithCustomVersion::<Block>::ID,
|
||||
&<dyn ApiWithCustomVersion::<Block>>::ID,
|
||||
&runtime_decl_for_ApiWithCustomVersion::ID,
|
||||
);
|
||||
assert_eq!(ApiWithCustomVersion::<Block>::VERSION, 2);
|
||||
assert_eq!(<dyn ApiWithCustomVersion::<Block>>::VERSION, 2);
|
||||
}
|
||||
|
||||
fn check_runtime_api_versions_contains<T: RuntimeApiInfo + ?Sized>() {
|
||||
|
||||
Reference in New Issue
Block a user