Display => AsRef<str>

This commit is contained in:
Bad Manners 2024-10-30 20:28:42 -03:00
parent 59c6688c6d
commit a7386e0c38

View file

@ -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 {
' '
| '"'