summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty/src/config/color.rs1
-rw-r--r--alacritty/src/config/ui_config.rs1
-rw-r--r--alacritty_terminal/src/config/mod.rs4
3 files changed, 4 insertions, 2 deletions
diff --git a/alacritty/src/config/color.rs b/alacritty/src/config/color.rs
index e08b08b4..2ded7f04 100644
--- a/alacritty/src/config/color.rs
+++ b/alacritty/src/config/color.rs
@@ -75,6 +75,7 @@ impl Default for HintEndColors {
}
#[derive(Deserialize, Copy, Clone, Default, Debug, PartialEq, Eq)]
+#[serde(deny_unknown_fields)]
pub struct IndexedColor {
pub color: Rgb,
diff --git a/alacritty/src/config/ui_config.rs b/alacritty/src/config/ui_config.rs
index c4a1c83d..658d2ea8 100644
--- a/alacritty/src/config/ui_config.rs
+++ b/alacritty/src/config/ui_config.rs
@@ -455,6 +455,7 @@ impl<'de> Deserialize<'de> for HintContent {
/// Binding for triggering a keyboard hint.
#[derive(Deserialize, Copy, Clone, Debug, PartialEq, Eq)]
+#[serde(deny_unknown_fields)]
pub struct HintBinding {
pub key: Key,
#[serde(default)]
diff --git a/alacritty_terminal/src/config/mod.rs b/alacritty_terminal/src/config/mod.rs
index 2d921b6e..80be4d16 100644
--- a/alacritty_terminal/src/config/mod.rs
+++ b/alacritty_terminal/src/config/mod.rs
@@ -127,7 +127,7 @@ impl Cursor {
}
#[derive(SerdeReplace, Deserialize, Debug, Copy, Clone, PartialEq, Eq)]
-#[serde(untagged)]
+#[serde(untagged, deny_unknown_fields)]
pub enum ConfigCursorStyle {
Shape(CursorShapeShim),
WithBlinking {
@@ -191,7 +191,7 @@ impl From<CursorBlinking> for bool {
}
#[derive(Deserialize, Debug, Clone, PartialEq, Eq)]
-#[serde(untagged)]
+#[serde(untagged, deny_unknown_fields)]
pub enum Program {
Just(String),
WithArgs {