chore(fmt): Apply 'cargo fmt' to the whole code base

This commit is contained in:
Andrew Hlynskyi 2021-05-16 17:55:58 +03:00
parent cf06ac4f82
commit 3c0152a331
6 changed files with 39 additions and 29 deletions

View file

@ -13,7 +13,7 @@ impl Rand {
}
pub fn unsigned(&mut self, max: usize) -> usize {
self.0.gen_range(0 .. max + 1)
self.0.gen_range(0..max + 1)
}
pub fn words(&mut self, max_count: usize) -> Vec<u8> {

View file

@ -47,7 +47,10 @@ impl ScopeSequence {
if self.0.len() != text.len() {
panic!(
"Inconsistent scope sequence: {:?}",
self.0.iter().zip(text.iter().map(|c| *c as char)).collect::<Vec<_>>()
self.0
.iter()
.zip(text.iter().map(|c| *c as char))
.collect::<Vec<_>>()
);
}