Skip to content

Commit 24e8b81

Browse files
committed
Merge branch 'crc'
2 parents b783452 + 8af846e commit 24e8b81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/wasm-shim/src/lib.rs

+10
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ pub struct Replicate {
7474
csv: String,
7575
}
7676

77+
#[wasm_bindgen]
78+
impl Replicate {
79+
#[wasm_bindgen(constructor)]
80+
#[must_use]
81+
#[allow(clippy::missing_const_for_fn)]
82+
pub fn new(number: u32, csv: String) -> Self {
83+
Self { number, csv }
84+
}
85+
}
86+
7787
#[wasm_bindgen]
7888
#[must_use]
7989
pub fn consolidate(replicates: Vec<Replicate>) -> String {

0 commit comments

Comments
 (0)