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 authored and Gav Wood committed 2018-09-26 11:15:56 +01:00
1 parent 52dbf0cace
commit 74a5ff7d0d
5 files changed
+10 -10

No files matched your search

+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)
}
}