diff options
| author | Teddy Wing | 2018-10-29 00:05:17 +0100 |
|---|---|---|
| committer | Teddy Wing | 2018-10-29 00:05:17 +0100 |
| commit | ec60f43a0e0b46ad23a840bab4b80efac2310fec (patch) | |
| tree | d966b7bf7e5c04810dfb5c7664a24e9e8933d72e /src | |
| parent | c54226120bdc9277f9ab6e0e54dae9062550702d (diff) | |
| download | dome-key-map-ec60f43a0e0b46ad23a840bab4b80efac2310fec.tar.bz2 | |
Rename `run_key_action_for_mode` to `run_key_action`
Now that this function no longer takes a "current mode" argument, the
"mode" part of the name doesn't make sense.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ffi.rs | 4 | ||||
| -rw-r--r-- | src/map.rs | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -9,7 +9,7 @@ use xdg; use {HeadphoneButton, MapGroup}; use config::{self, Config}; -use map::run_key_action_for_mode; +use map::run_key_action; use trial; #[repr(C)] @@ -102,7 +102,7 @@ pub extern "C" fn dome_key_run_key_action( &mut *state }; - run_key_action_for_mode(&mut state, trigger); + run_key_action(&mut state, trigger); } #[no_mangle] @@ -6,7 +6,7 @@ use {Action, HeadphoneButton, MapAction, MapKind}; use ffi::State; use sounds; -pub fn run_key_action_for_mode<'a>( +pub fn run_key_action<'a>( state: &mut State, trigger: &'a [HeadphoneButton], ) { |
