Fix a `trivial interger cast` which slipped through the verification
@@ -126,7 +126,7 @@ fn set_key<'lua>(_: &'lua Lua,
.map_err(|err| rlua::Error::RuntimeError(format!("Parse error: {:?}", err)))?;
// the - 8 is because of xcb conventions, where "#10" is the keysim for 1,
// and the keycode of 1 is 0x02 (obviously)
- key.set_keycode(number - 8 as xkb::Keycode)?;
+ key.set_keycode(number - 8)?;
} else {
let keysym = xkb::keysym_from_name(key_name.as_str(), 0);
key.set_keysym(keysym)?;
