mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
symbols: avoid using to_ident_string
when {}
-formatting works.
This commit is contained in:
parent
d76211384e
commit
1000dece4a
@ -641,9 +641,7 @@ fn parse_entry_attrs(
|
||||
return Err((
|
||||
attr_name.span,
|
||||
format!(
|
||||
"#[spirv({}(..))] unknown attribute argument {}",
|
||||
name.name.to_ident_string(),
|
||||
attr_name.name.to_ident_string()
|
||||
"#[spirv({name}(..))] unknown attribute argument {attr_name}"
|
||||
),
|
||||
))
|
||||
}
|
||||
@ -651,20 +649,13 @@ fn parse_entry_attrs(
|
||||
} else {
|
||||
return Err((
|
||||
attr_name.span,
|
||||
format!(
|
||||
"#[spirv({}(..))] unknown attribute argument {}",
|
||||
name.name.to_ident_string(),
|
||||
attr_name.name.to_ident_string()
|
||||
),
|
||||
format!("#[spirv({name}(..))] unknown attribute argument {attr_name}",),
|
||||
));
|
||||
}
|
||||
} else {
|
||||
return Err((
|
||||
arg.span(),
|
||||
format!(
|
||||
"#[spirv({}(..))] attribute argument must be single identifier",
|
||||
name.name.to_ident_string()
|
||||
),
|
||||
format!("#[spirv({name}(..))] attribute argument must be single identifier"),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user