Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Prev Previous commit
fix warnings and grumbles
  • Loading branch information
rphmeier committed Feb 8, 2018
commit 71680b206ea529c7093db1df29a4e2fdf5f523d2
2 changes: 1 addition & 1 deletion substrate/codec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]

#[macro_use]
#[cfg_attr(not(feature = "std"), macro_use)]
extern crate substrate_runtime_std as rstd;

mod endiansensitive;
Expand Down
4 changes: 2 additions & 2 deletions substrate/codec/src/slicable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl Slicable for Vec<u8> {
}

macro_rules! impl_vec_simple_array {
($($size:expr)*) => {
($($size:expr),*) => {
$(
impl<T> Slicable for Vec<[T; $size]>
where [T; $size]: EndianSensitive
Expand Down Expand Up @@ -151,7 +151,7 @@ macro_rules! impl_vec_simple_array {
}
}

impl_vec_simple_array!(1 2 4 8 16 32 64);
impl_vec_simple_array!(1, 2, 4, 8, 16, 32, 64);

impl<T: Slicable> NonTrivialSlicable for Vec<T> where Vec<T>: Slicable {}

Expand Down
1 change: 0 additions & 1 deletion substrate/rpc/src/chain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

use primitives::block;
use client;
use client::blockchain::BlockId;
use state_machine;

mod error;
Expand Down