5 random fixes (#2) (#623)

* Tabs instead of spaces.

* Remove double spaces.

* Add spaces between ID and the following {

* Update to nightly 2018-08-27

* Align wat code properly
This commit is contained in:
Sergey Pepyakin
2018-08-29 12:26:44 +03:00
committed by Gav Wood
parent 5c8b52ba16
commit 283eb383c0
27 changed files with 105 additions and 105 deletions
+8 -8
View File
@@ -137,7 +137,7 @@ mod tests {
#[test]
fn test_score_1_char_100() {
let score = calculate_score("j", "5jolkadotwHY5k9GpdTgpqs9xjuNvtv8EcwCFpEeyEf3KHim");
assert!(score == 100, format!("Wrong score, we found {}", score));
assert!(score == 100, format!("Wrong score, we found {}", score));
}
#[test]
@@ -159,17 +159,17 @@ mod tests {
#[cfg(feature = "bench")]
#[bench]
fn bench_paranoiac(b: &mut Bencher) {
b.iter(|| {
fn bench_paranoiac(b: &mut Bencher) {
b.iter(|| {
generate_key("polka", 3, true)
});
}
}
#[cfg(feature = "bench")]
#[bench]
fn bench_not_paranoiac(b: &mut Bencher) {
b.iter(|| {
#[bench]
fn bench_not_paranoiac(b: &mut Bencher) {
b.iter(|| {
generate_key("polka", 3, false)
});
}
}
}