diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-10-06 10:36:40 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-10-06 10:36:40 +0200 |
commit | 81d131360d49282f6e3b9b9680071a17207cdee2 (patch) | |
tree | 9669b7e3f79965d136dd021257249399bc6621ad /src/main.rs | |
parent | 5e50fa946f5ea89f1cbfcc3db8b232565f6a61f2 (diff) | |
download | frotate.rs-81d131360d49282f6e3b9b9680071a17207cdee2.tar.gz |
Reformat
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 8bf737a..752204c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,8 +30,8 @@ struct Args { arg_day: Vec<NaiveDate>, } -fn exponent(b:f32, n:u32) -> i64 { - let i : i32 = n as i32 - 1; +fn exponent(b: f32, n: u32) -> i64 { + let i: i32 = n as i32 - 1; b.powi(i).ceil() as i64 } @@ -67,4 +67,3 @@ fn main() { exit(1); } } - |