Skip to content

Commit

Permalink
chore: changes for wasm compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroo committed Nov 3, 2024
1 parent 07837da commit 15c1f65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/kanata/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1074,9 +1074,11 @@ impl Kanata {
// Given that there appears to be no practical negative consequences for this bug
// remaining.
log::trace!("{:?}", &self.prev_keys);
let mut fwd_release = self.prev_keys.iter();
let mut rev_release = self.prev_keys.iter().rev();
let keys: &mut dyn Iterator<Item = &KeyCode> = match reverse_release_order {
false => &mut self.prev_keys.iter(),
true => &mut self.prev_keys.iter().rev(),
false => &mut fwd_release,
true => &mut rev_release,
};
for k in keys {
if cur_keys.contains(k) {
Expand Down
2 changes: 1 addition & 1 deletion wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2021"
crate-type = [ "cdylib", "rlib" ]

[dependencies]
wasm-bindgen = "0.2.92"
wasm-bindgen = "0.2.95"
kanata = { path = ".." , default-features = false, features = [ "simulated_output", "wasm" ] }
anyhow = "1.0.81"
log = "0.4.21"
Expand Down

0 comments on commit 15c1f65

Please sign in to comment.