mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
style: Remove useless String::to_string call.
This commit is contained in:
parent
989e1c2e68
commit
ada45f4968
1 changed files with 0 additions and 1 deletions
|
@ -79,7 +79,6 @@ fn derive_variant_arm(
|
||||||
|
|
||||||
let mut expr = if let Some(keyword) = variant_attrs.keyword {
|
let mut expr = if let Some(keyword) = variant_attrs.keyword {
|
||||||
assert!(bindings.is_empty());
|
assert!(bindings.is_empty());
|
||||||
let keyword = keyword.to_string();
|
|
||||||
quote! {
|
quote! {
|
||||||
::std::fmt::Write::write_str(dest, #keyword)
|
::std::fmt::Write::write_str(dest, #keyword)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue