diff --git a/tests/main_tests/derive_tests.rs b/tests/main_tests/derive_tests.rs index 7bf2b87..133230e 100644 --- a/tests/main_tests/derive_tests.rs +++ b/tests/main_tests/derive_tests.rs @@ -261,11 +261,11 @@ fn display_enum_formatting() { for n in [3, 5, 8] { assert_eq!( fmt_flatten!(FmtArg::BIN; DispEnum => DispEnum::Other(n)), - *format!("Other({n:b})"), + *format!("Other({:b})", n), ); assert_eq!( fmt_flatten!(FmtArg::ALT_BIN; DispEnum => DispEnum::Other(n)), - *format!("Other(\n {n:#b},\n)"), + *format!("Other(\n {:#b},\n)", n), ); }