Merge pull request #805 from ethcore/rustfmt

Rustfmt.toml
This commit is contained in:
Marek Kotewicz
2016-03-25 10:39:59 +01:00
6 changed files with 41 additions and 13 deletions

View File

@@ -1 +0,0 @@
hard_tabs = true

View File

@@ -208,7 +208,7 @@ pub mod ec {
match context.verify(&try!(Message::from_slice(&message)), &sig, &publ) {
Ok(_) => Ok(true),
Err(Error::IncorrectSignature) => Ok(false),
Err(x) => Err(<CryptoError as From<Error>>::from(x))
Err(x) => Err(CryptoError::from(x))
}
}

View File

@@ -153,7 +153,7 @@ impl<'a, 'view> Iterator for RlpIterator<'a, 'view> {
fn next(&mut self) -> Option<Rlp<'a>> {
let index = self.index;
let result = self.rlp.rlp.at(index).ok().map(| iter | { From::from(iter) });
let result = self.rlp.rlp.at(index).ok().map(From::from);
self.index += 1;
result
}