Fix indentation of a macro in simple_nested_test.rs

Looks like rustfmt doesn't do it automatically.

PiperOrigin-RevId: 599271261
pull/15467/head
Alyssa Haroldsen 11 months ago committed by Copybara-Service
parent 9bd8dfa639
commit 19851968bb
  1. 14
      rust/test/shared/simple_nested_test.rs

@ -64,13 +64,13 @@ fn test_nested_muts() {
// new:
// set_and_test_mut!(inner_msg => double_mut, 543.21);
macro_rules! set_and_test_mut {
( $a:expr => $($target_mut:ident, $val:expr;)* ) => {
$(
$a.$target_mut().set($val);
assert_that!($a.$target_mut().get(), eq($val));
)*
};
}
( $a:expr => $($target_mut:ident, $val:expr;)* ) => {
$(
$a.$target_mut().set($val);
assert_that!($a.$target_mut().get(), eq($val));
)*
};
}
let mut outer_msg = Outer::new();
let mut inner_msg: InnerMut<'_> = outer_msg.inner_mut();

Loading…
Cancel
Save