aboutsummaryrefslogtreecommitdiff
path: root/alacritty_config
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-02-02 11:30:23 +0300
committerGitHub <noreply@github.com>2023-02-02 11:30:23 +0300
commit1c878a0476257d328113efcd7088f1aa53f42e56 (patch)
treeb4ba30e6b9549965387330f9eb7111c95795de69 /alacritty_config
parent246ec8945d84f658fc88d02a33c3590ef4a92e0f (diff)
downloadalacritty-1c878a0476257d328113efcd7088f1aa53f42e56.tar.gz
alacritty-1c878a0476257d328113efcd7088f1aa53f42e56.zip
Update winit to 0.28
Fixes #6644. Fixes #6615. Fixes #6558. Fixes #6515. Fixes #3187. Fixes #62.
Diffstat (limited to 'alacritty_config')
-rw-r--r--alacritty_config/Cargo.toml3
-rw-r--r--alacritty_config/src/lib.rs5
2 files changed, 7 insertions, 1 deletions
diff --git a/alacritty_config/Cargo.toml b/alacritty_config/Cargo.toml
index c2e25f4f..ce057869 100644
--- a/alacritty_config/Cargo.toml
+++ b/alacritty_config/Cargo.toml
@@ -12,3 +12,6 @@ rust-version = "1.60.0"
log = { version = "0.4.17", features = ["serde"] }
serde_yaml = "0.8.24"
serde = "1.0.137"
+
+[target.'cfg(target_os = "macos")'.dependencies]
+winit = { version = "0.28.0", default-features = false, features = ["serde"] }
diff --git a/alacritty_config/src/lib.rs b/alacritty_config/src/lib.rs
index 7a467650..5ed9e1a5 100644
--- a/alacritty_config/src/lib.rs
+++ b/alacritty_config/src/lib.rs
@@ -32,12 +32,15 @@ impl_replace!(
LevelFilter,
);
+#[cfg(target_os = "macos")]
+impl_replace!(winit::platform::macos::OptionAsAlt,);
+
fn replace_simple<'de, D>(data: &mut D, key: &str, value: Value) -> Result<(), Box<dyn Error>>
where
D: Deserialize<'de>,
{
if !key.is_empty() {
- let error = format!("Fields \"{}\" do not exist", key);
+ let error = format!("Fields \"{key}\" do not exist");
return Err(error.into());
}
*data = D::deserialize(value)?;