Update codecs/resize/src/lib.rs

This commit is contained in:
Surma
2021-01-05 14:49:41 +00:00
committed by GitHub
parent f55e4cf9a8
commit e260994600

View File

@@ -55,12 +55,6 @@ fn alpha_multiplier_funcs(
}
}
fn vec_with_len<T: Clone>(len: usize, item: T) -> Vec<T> {
let mut v: Vec<T> = Vec::with_capacity(len);
v.resize(len, item);
return v;
}
#[wasm_bindgen]
#[no_mangle]
pub fn resize(