aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-09-10 17:12:06 -0400
committerGitHub <noreply@github.com>2018-09-10 17:12:06 -0400
commit795e7f60029ec8d6be23bbac007ac2100abdabe1 (patch)
treeff30f2f913876ff7f94ebfff5ef54977c89978b1
parent6cad3f4f40b8a85839b0f32d4c27612a0cc41e50 (diff)
parent52a11d8237a631e92c86a80f4e24f6c7a0a8e091 (diff)
downloadservo-795e7f60029ec8d6be23bbac007ac2100abdabe1.tar.gz
servo-795e7f60029ec8d6be23bbac007ac2100abdabe1.zip
Auto merge of #21661 - chansuke:format_size_of_test, r=jdm
Format component size_of_test <!-- Please describe your changes on the following line: --> Format `components/size_of_test` by: ``` rustfmt components/size_of_test/*.rs ``` --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix part of #21373. - [x] These changes do not require tests because they format code only. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21661) <!-- Reviewable:end -->
-rw-r--r--components/size_of_test/lib.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/components/size_of_test/lib.rs b/components/size_of_test/lib.rs
index fdd2cd62ec9..f190c24599d 100644
--- a/components/size_of_test/lib.rs
+++ b/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!()
)
}
}
- }
+ };
}