Skip to content

Commit

Permalink
vec![] -> Vec::new()
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Feb 21, 2024
1 parent e882ffd commit ba74334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/archive/fibonacci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use crate::utils::nth;
fn nth_fibonacci(n: usize, count: usize) -> Vec<BigUint> {
let mut f0: BigUint = Zero::zero();
let mut f1: BigUint = One::one();
let mut x = vec![];
let mut x = Vec::new();
for i in 0..(n + count - 1) {
let f2 = f0 + &f1;
// This is a low cost way of swapping f0 with f1 and f1 with f2.
Expand Down

0 comments on commit ba74334

Please sign in to comment.