rust: Fix compiler warnings

This commit is contained in:
Dorota Czaplejewicz
2021-04-01 16:28:25 +00:00
parent d289129404
commit ac03c26d5d
3 changed files with 3 additions and 3 deletions

View File

@ -590,7 +590,7 @@ fn create_action<H: logging::Handler>(
Text(String),
Keysym(String),
Modifier(Modifier),
};
}
let submission = match (
&symbol_meta.action,

View File

@ -149,7 +149,7 @@ impl Submission {
enum Outcome {
Submitted(Result<(), imservice::SubmitError>),
NotSubmitted,
};
}
let submit_outcome = match data {
SubmitData::Text(text) => {

View File

@ -43,7 +43,7 @@ pub fn check_layout_file(path: &str) {
fn check_sym_in_keymap(state: &xkb::State, sym_name: &str) -> bool {
let sym = xkb::keysym_from_name(sym_name, xkb::KEYSYM_NO_FLAGS);
if sym == xkb::KEY_NoSymbol {
panic!(format!("Entered invalid keysym: {}", sym_name));
panic!("Entered invalid keysym: {}", sym_name);
}
let map = state.get_keymap();
let range = map.min_keycode()..=map.max_keycode();