This commit is contained in:
Alex Orlenko 2023-03-28 20:53:22 +01:00
parent e182d474e0
commit 0848ddcdf7
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ impl ModuleAttributes {
self.name = Some(value.parse::<LitStr>()?.parse()?);
}
Err(_) => {
return Err(meta.error(format!("`name` attribute must have a value")));
return Err(meta.error("`name` attribute must have a value"));
}
}
} else {