Skip to content

Commit f25732e

Browse files
committed
Apply rustfmt to repeated_squares example
1 parent 8f16abb commit f25732e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

examples/repeated_squares.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
21
extern crate bigdecimal;
32

43
use bigdecimal::BigDecimal;
54
use std::time::Instant;
65
use std::str::FromStr;
76

8-
fn main()
9-
{
10-
// let mut x = BigDecimal::from(1.1);
7+
fn main() {
8+
// let mut x = BigDecimal::from(1.1);
119
let mut x = BigDecimal::from_str("1.1").unwrap();
1210
// for iter in 0..1_000_000 {
1311
for iter in 0..26 {
@@ -16,6 +14,10 @@ fn main()
1614
// x = x.take_and_square();
1715
let end = Instant::now();
1816
let usage = end - start;
19-
println!("iter {} takes {} secs", iter, usage.as_secs() as f32 + usage.subsec_nanos() as f32 / 1.0e9);
17+
println!(
18+
"iter {} takes {} secs",
19+
iter,
20+
usage.as_secs() as f32 + usage.subsec_nanos() as f32 / 1.0e9
21+
);
2022
}
2123
}

0 commit comments

Comments
 (0)