Avoid generating _size_hint local variable
This commit is contained in:
parent
670d936def
commit
119e282945
|
@ -275,9 +275,7 @@ fn derive_template_impl(tokens: TokenStream) -> Result<TokenStream, syn::Error>
|
||||||
static SIZE_HINT: __sf_rt::SizeHint = __sf_rt::SizeHint::new();
|
static SIZE_HINT: __sf_rt::SizeHint = __sf_rt::SizeHint::new();
|
||||||
|
|
||||||
let mut __sf_buf = __sf_rt::Buffer::from(std::mem::take(buf));
|
let mut __sf_buf = __sf_rt::Buffer::from(std::mem::take(buf));
|
||||||
|
__sf_buf.reserve(SIZE_HINT.get());
|
||||||
let _size_hint = SIZE_HINT.get();
|
|
||||||
__sf_buf.reserve(_size_hint);
|
|
||||||
|
|
||||||
let #name { #field_names } = self;
|
let #name { #field_names } = self;
|
||||||
include!(#output_file_string);
|
include!(#output_file_string);
|
||||||
|
|
Loading…
Reference in New Issue