We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 157fca4 commit 6c3665cCopy full SHA for 6c3665c
macros/lib.rs
@@ -88,13 +88,13 @@ define_proc_macros! {
88
map.build(&mut initializer_bytes).unwrap();
89
tokens.append(::std::str::from_utf8(&initializer_bytes).unwrap());
90
tokens.append(";");
91
- tokens.to_string()
+ tokens.into_string()
92
}
93
94
95
fn max_len<I: Iterator<Item=usize>>(lengths: I) -> String {
96
let max_length = lengths.max().expect("expected at least one string");
97
- quote!( const MAX_LENGTH: usize = #max_length; ).to_string()
+ quote!( const MAX_LENGTH: usize = #max_length; ).into_string()
98
99
100
fn string_literal(token: &syn::TokenTree) -> &str {
0 commit comments