fix: address clippy 0.1.74 issues (#1336)

- clippy::needless-borrows-for-generic-args
- clippy::reserve-after-initialization
This commit is contained in:
drbh
2023-11-16 16:15:22 -05:00
committed by GitHub
parent c6763e3b41
commit 92a05b51cf
3 changed files with 4 additions and 6 deletions

View File

@ -59,8 +59,7 @@ fn dft<T: Float>(inp: &[T]) -> Vec<T> {
let n = inp.len();
let two_pi = T::PI() + T::PI();
let mut out = Vec::new();
out.reserve(2 * n);
let mut out = Vec::with_capacity(2 * n);
let n_t = T::from(n).unwrap();
for k in 0..n {
let k_t = T::from(k).unwrap();