aboutsummaryrefslogtreecommitdiff
path: root/alacritty_config_derive
diff options
context:
space:
mode:
authorHamir Mahal <hamirmahal@gmail.com>2024-07-23 18:37:35 -0700
committerGitHub <noreply@github.com>2024-07-24 01:37:35 +0000
commitd021a7b6f871f4078073848cf8744881561eb254 (patch)
tree5ba0877c432f38d887d88c5fe7aba9f7163f6918 /alacritty_config_derive
parent6bd1674bd80e73df0d41e4342ad4e34bb7d04f84 (diff)
downloadalacritty-d021a7b6f871f4078073848cf8744881561eb254.tar.gz
alacritty-d021a7b6f871f4078073848cf8744881561eb254.zip
Unify string formatting
Diffstat (limited to 'alacritty_config_derive')
-rw-r--r--alacritty_config_derive/src/serde_replace.rs4
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)