mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Switch to Rust 2021 (#10170)
* Switch to Rust 2021 * Update trybuild to fix errors
This commit is contained in:
@@ -644,8 +644,6 @@ pub const fn serialize_runtime_api_info(id: [u8; 8], version: u32) -> [u8; RUNTI
|
||||
|
||||
/// Deserialize the runtime API info serialized by [`serialize_runtime_api_info`].
|
||||
pub fn deserialize_runtime_api_info(bytes: [u8; RUNTIME_API_INFO_SIZE]) -> ([u8; 8], u32) {
|
||||
use sp_std::convert::TryInto;
|
||||
|
||||
let id: [u8; 8] = bytes[0..8]
|
||||
.try_into()
|
||||
.expect("the source slice size is equal to the dest array length; qed");
|
||||
|
||||
Reference in New Issue
Block a user