Skip to content

Commit

Permalink
Fix SortRequireConfig on Wasm build (#818)
Browse files Browse the repository at this point in the history
Fixed SortRequireConfig on Wasm build
  • Loading branch information
Barocena authored Nov 5, 2023
1 parent 076b37e commit 5cf1ab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ pub struct SortRequiresConfig {
enabled: bool,
}

#[cfg_attr(all(target_arch = "wasm32", feature = "wasm-bindgen"), wasm_bindgen)]
impl SortRequiresConfig {
pub fn new() -> Self {
SortRequiresConfig::default()
}
pub fn enabled(&self) -> bool {
self.enabled
}
Expand Down

0 comments on commit 5cf1ab3

Please sign in to comment.