Skip to content

Commit eb976ca

Browse files
committed
Fixed clippy warning about evaluation warning dependence.
The evaluation order doesn't matter for that code, so I just allow-ed it.
1 parent eee9b94 commit eb976ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

const_format_proc_macros/src/format_macro.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub(crate) fn concatcp_impl(value: ExprArgs) -> Result<TokenStream2, crate::Erro
3131

3232
let #fmt_var = __cf_osRcTFl4A::pmr::FormattingFlags::NEW;
3333

34+
#[allow(clippy::eval_order_dependence)]
3435
let array = [
3536
#({
3637
let arg = #concat_args;
@@ -95,6 +96,7 @@ pub(crate) fn formatcp_impl(fmt_args: FormatArgs) -> Result<TokenStream2, crate:
9596

9697
#( #locals )*
9798

99+
#[allow(clippy::eval_order_dependence)]
98100
let array = [
99101
#({
100102
let arg = #parg_constructor;

0 commit comments

Comments
 (0)