Commit ac03c26d authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

rust: Fix compiler warnings

parent d2891294
......@@ -590,7 +590,7 @@ fn create_action<H: logging::Handler>(
Text(String),
Keysym(String),
Modifier(Modifier),
};
}
let submission = match (
&symbol_meta.action,
......
......@@ -149,7 +149,7 @@ impl Submission {
enum Outcome {
Submitted(Result<(), imservice::SubmitError>),
NotSubmitted,
};
}
let submit_outcome = match data {
SubmitData::Text(text) => {
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment