mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-11 16:26:20 +00:00
Update codecs/resize/src/lib.rs
This commit is contained in:
@@ -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]
|
#[wasm_bindgen]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub fn resize(
|
pub fn resize(
|
||||||
|
|||||||
Reference in New Issue
Block a user