mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-09 12:17:07 +00:00
Fix tons of warnings in newest nightly (#2784)
* Fix tons of warnings in newest nightly * Fix sr-api-macro doc tests
This commit is contained in:
1 parent
9700029203
commit
6142f95611
73 files changed
+359
-316
No files matched your search
@@ -44,8 +44,8 @@ use rstd::prelude::*;
|
||||
fn encode_with_vec_prefix<T: Encode, F: Fn(&mut Vec<u8>)>(encoder: F) -> Vec<u8> {
|
||||
let size = ::rstd::mem::size_of::<T>();
|
||||
let reserve = match size {
|
||||
0...0b00111111 => 1,
|
||||
0...0b00111111_11111111 => 2,
|
||||
0..=0b00111111 => 1,
|
||||
0..=0b00111111_11111111 => 2,
|
||||
_ => 4,
|
||||
};
|
||||
let mut v = Vec::with_capacity(reserve + size);
|
||||
|
||||
Reference in new issue
Block a user