diff --git a/src/kanata/mod.rs b/src/kanata/mod.rs index de0874f71..fc31e9367 100755 --- a/src/kanata/mod.rs +++ b/src/kanata/mod.rs @@ -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 = 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) { diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index ab113172a..5d3f570cc 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -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"