mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 20:22:49 +00:00
Fix for clippy 1.86. (#2864)
* Fix for clippy 1.86. * More clippy fixes. * More fixes.
This commit is contained in:
@ -177,7 +177,7 @@ fn log_mel_spectrogram_<T: Float + std::fmt::Display>(
|
||||
let samples = {
|
||||
let mut samples_padded = samples.to_vec();
|
||||
let to_add = n_len * fft_step - samples.len();
|
||||
samples_padded.extend(std::iter::repeat(zero).take(to_add));
|
||||
samples_padded.extend(std::iter::repeat_n(zero, to_add));
|
||||
samples_padded
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user