diff options
Diffstat (limited to 'alacritty_config_derive/src/serde_replace.rs')
-rw-r--r-- | alacritty_config_derive/src/serde_replace.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty_config_derive/src/serde_replace.rs b/alacritty_config_derive/src/serde_replace.rs index ddd0cf75..cd56b3bc 100644 --- a/alacritty_config_derive/src/serde_replace.rs +++ b/alacritty_config_derive/src/serde_replace.rs @@ -112,11 +112,11 @@ fn match_arms<T>(fields: &Punctuated<Field, T>) -> Result<TokenStream2, syn::Err .map(|parsed| { let value = parsed .param - .ok_or_else(|| format!("Field \"{}\" has no alias value", ident))? + .ok_or_else(|| format!("Field \"{ident}\" has no alias value"))? .value(); if value.trim().is_empty() { - return Err(format!("Field \"{}\" has an empty alias value", ident)); + return Err(format!("Field \"{ident}\" has an empty alias value")); } Ok(value) |