diff --git a/src/error.rs b/src/error.rs index 7957d2f1..3cb50e03 100644 --- a/src/error.rs +++ b/src/error.rs @@ -137,7 +137,7 @@ impl ConfigError { fn prepend(self, segment: &str, add_dot: bool) -> Self { let concat = |key: Option| { let key = key.unwrap_or_default(); - let dot = if add_dot && key.as_bytes().get(0).unwrap_or(&b'[') != &b'[' { + let dot = if add_dot && key.as_bytes().first().unwrap_or(&b'[') != &b'[' { "." } else { ""