diff options
Diffstat (limited to 'alacritty_config/src')
-rw-r--r-- | alacritty_config/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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)?; |