Skip to content

Commit

Permalink
Fix x11 keycodes StrOrChar conversion
Browse files Browse the repository at this point in the history
The newly introduced lifetime parameter must be specified exmplicitly.
  • Loading branch information
elrnv committed Apr 12, 2020
1 parent 8d05b09 commit ea81ffe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions druid-shell/src/platform/x11/keycodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ impl From<RawKeyCode> for KeyCode {
}
}

impl Into<StrOrChar> for KeyCode {
impl Into<StrOrChar<'static>> for KeyCode {
#[allow(clippy::just_underscores_and_digits, non_upper_case_globals)]
fn into(self) -> StrOrChar {
fn into(self) -> StrOrChar<'static> {
match self {
KeyCode::Numpad1 => StrOrChar::Char('1'),
KeyCode::Numpad2 => StrOrChar::Char('2'),
Expand Down

0 comments on commit ea81ffe

Please sign in to comment.