diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-12-11 03:40:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 00:40:32 +0000 |
commit | 6b208a6958a32594cf1248f5336f8a8f79d17fe3 (patch) | |
tree | 1e1269dd829e8cc6688eed8b60cafabc97108c0e /alacritty/src/config/bindings.rs | |
parent | b0022047542de5979895ae0957e958b8cd5b6020 (diff) | |
download | r-alacritty-6b208a6958a32594cf1248f5336f8a8f79d17fe3.tar.gz r-alacritty-6b208a6958a32594cf1248f5336f8a8f79d17fe3.tar.bz2 r-alacritty-6b208a6958a32594cf1248f5336f8a8f79d17fe3.zip |
Bump glutin to 0.26.0
Fixes #4530.
Fixes #4072.
Fixes #1927.
Diffstat (limited to 'alacritty/src/config/bindings.rs')
-rw-r--r-- | alacritty/src/config/bindings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 62da0e6c..f5b63561 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -638,7 +638,7 @@ impl<'a> Deserialize<'a> for MouseButtonWrapper { type Value = MouseButtonWrapper; fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("Left, Right, Middle, or a number from 0 to 255") + f.write_str("Left, Right, Middle, or a number from 0 to 65536") } fn visit_u64<E>(self, value: u64) -> Result<MouseButtonWrapper, E> @@ -646,7 +646,7 @@ impl<'a> Deserialize<'a> for MouseButtonWrapper { E: de::Error, { match value { - 0..=255 => Ok(MouseButtonWrapper(MouseButton::Other(value as u8))), + 0..=65536 => Ok(MouseButtonWrapper(MouseButton::Other(value as u16))), _ => Err(E::invalid_value(Unexpected::Unsigned(value), &self)), } } |