State db random fixes (#802)

* state-db: typo fixes

* use fmt::Result for 'fmt'

* state-db: typo fixes

* state-db: use the same pattern to pass the parameter

* state-db: follow the same style
This commit is contained in:
Guanqun Lu
2018-09-26 18:15:56 +08:00
committed by Gav Wood
parent 52dbf0cace
commit 74a5ff7d0d
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ impl<AccountId, AccountIndex> fmt::Display for Address<AccountId, AccountIndex>
AccountId: Member,
AccountIndex: Member,
{
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:?}", self)
}
}