syntax: Let older rustc understand symbolmap's lifetime
This commit is contained in:
@ -386,7 +386,8 @@ impl Layout {
|
||||
extract_symbol_names(&button_actions)
|
||||
);
|
||||
|
||||
let button_states = button_actions.into_iter().map(|(name, action)| {
|
||||
let button_states = HashMap::<String, KeyState>::from_iter(
|
||||
button_actions.into_iter().map(|(name, action)| {
|
||||
let keycodes = match &action {
|
||||
::action::Action::Submit { text: _, keys } => {
|
||||
keys.iter().map(|named_keysym| {
|
||||
@ -414,10 +415,7 @@ impl Layout {
|
||||
action,
|
||||
}
|
||||
)
|
||||
});
|
||||
|
||||
let button_states = HashMap::<String, KeyState>::from_iter(
|
||||
button_states
|
||||
})
|
||||
);
|
||||
|
||||
let keymap_str = match generate_keymap(symbolmap) {
|
||||
|
||||
Reference in New Issue
Block a user