Display => AsRef<str>
This commit is contained in:
parent
59c6688c6d
commit
a7386e0c38
1 changed files with 2 additions and 2 deletions
|
@ -418,8 +418,8 @@ pub mod macro_private {
|
|||
use alloc::string::String;
|
||||
use core::fmt::Display;
|
||||
|
||||
pub fn strip_to_attr_name(input: impl Display, output: &mut String) {
|
||||
for c in alloc::format!("{}", input).chars() {
|
||||
pub fn strip_to_attr_name(input: impl AsRef<str>, output: &mut String) {
|
||||
for c in input.as_ref().chars() {
|
||||
match c {
|
||||
' '
|
||||
| '"'
|
||||
|
|
Loading…
Add table
Reference in a new issue