mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Auto merge of #14896 - g1smo:tidy-assignments, r=jdm
Tidy assignments <!-- Please describe your changes on the following line: --> I've added a new tidy rule (no = in the beginning of line) + tests for it. Also cleaned up a few rust source files to accord with the new rule. --- <!-- 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 - [X] These changes fix #14890 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14896) <!-- Reviewable:end -->
This commit is contained in:
commit
b6c137b36f
6 changed files with 12 additions and 6 deletions
|
@ -51,8 +51,8 @@ macro_rules! thread_types ( ( $( $fun:ident = $flag:ident ; )* ) => (
|
|||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
static TYPES: &'static [ThreadState]
|
||||
= &[ $( $flag ),* ];
|
||||
static TYPES: &'static [ThreadState] =
|
||||
&[ $( $flag ),* ];
|
||||
));
|
||||
|
||||
thread_types! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue