oh just cargo fmt it all
This commit is contained in:
@@ -5,7 +5,9 @@ fn main() {
|
||||
println!("Please insert a number between 2 and 45");
|
||||
let mut num = String::new();
|
||||
|
||||
io::stdin().read_line( &mut num).expect("failed to read line");
|
||||
io::stdin()
|
||||
.read_line(&mut num)
|
||||
.expect("failed to read line");
|
||||
|
||||
let num: u8 = match num.trim().parse() {
|
||||
Ok(n) if n < 45 => n,
|
||||
@@ -19,7 +21,6 @@ fn main() {
|
||||
println!("{fib}");
|
||||
}
|
||||
|
||||
|
||||
fn fibonacci(n: u8) -> u32 {
|
||||
if n == 0 {
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user