Indices maintenance (#1705)

* Migrate the indicies crate to 2018 edition.

* Use .cloned() instead of .map(|x| x.clone())

* Update documentation.
This commit is contained in:
Sergei Pepyakin
2019-02-06 14:51:14 +01:00
committed by Bastian Köcher
parent 1d0049ee00
commit 7d8ae2df5c
5 changed files with 28 additions and 41 deletions
+3 -2
View File
@@ -18,9 +18,10 @@
#[cfg(feature = "std")]
use std::fmt;
use super::{Member, Decode, Encode, As, Input, Output};
use crate::{Member, Decode, Encode, As, Input, Output};
/// A vetted and verified extrinsic from the external world.
/// An indices-aware address, which can be either a direct `AccountId` or
/// an index.
#[derive(PartialEq, Eq, Clone)]
#[cfg_attr(feature = "std", derive(Debug, Hash))]
pub enum Address<AccountId, AccountIndex> where