Allow let _ in literal macro
@@ -92,7 +92,8 @@ macro_rules! value_internal {
// Insert the current entry followed by trailing comma.
(@object $object:ident [$($key:tt)+] ($value:expr) , $($rest:tt)*) => {
- let _x = $object.insert(($($key)+).into(), $value);
+ // ALLOW: let _
+ let _ = $object.insert(($($key)+).into(), $value);
value_internal!(@object $object () ($($rest)*) ($($rest)*));
};
@@ -103,7 +104,8 @@ macro_rules! value_internal {
// Insert the last entry without trailing comma.
(@object $object:ident [$($key:tt)+] ($value:expr)) => {
- let _x = $object.insert(($($key)+).into(), $value);
+ // ALLOW: let _
+ let _ = $object.insert(($($key)+).into(), $value);
};
// Next value is `null`.
