From 79427e98304a77f72ca835315d06ee9caeaf7e40 Mon Sep 17 00:00:00 2001 From: chansuke Date: Mon, 10 Sep 2018 21:31:38 +0900 Subject: [PATCH] Bug 1491577 - Format component size_of_test. r=emilio This cherry-picks servo/servo#21661. --- servo/components/size_of_test/lib.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/servo/components/size_of_test/lib.rs b/servo/components/size_of_test/lib.rs index fdd2cd62ec9e..f190c24599de 100644 --- a/servo/components/size_of_test/lib.rs +++ b/servo/components/size_of_test/lib.rs @@ -13,16 +13,22 @@ macro_rules! size_of_test { panic!( "Your changes have decreased the stack size of {} from {} to {}. \ Good work! Please update the expected size in {}.", - stringify!($t), old, new, file!() + stringify!($t), + old, + new, + file!() ) } else if new > old { panic!( "Your changes have increased the stack size of {} from {} to {}. \ Please consider choosing a design which avoids this increase. \ If you feel that the increase is necessary, update the size in {}.", - stringify!($t), old, new, file!() + stringify!($t), + old, + new, + file!() ) } } - } + }; }