Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMove `contain` outside of mako. #19656
Comments
|
Tentatively assigning it to @stevel98 :) |
|
Hi,
I only see it used in:
But wouldn't this be the same as:
|
|
This block means you can just implement the pub mod computed_value {
pub type T = super::SpecifiedValue;
}For this block, yeah, you can use #[inline]
pub fn get_initial_value() -> computed_value::T {
computed_value::T::empty()
}Another note:For this case, I didn't try but maybe you don't need this cc @emilio |
|
Yes, but in this case, since the types are the same, it's completely redundant to use |
|
Thanks! I'll try to remove it then. |
style: Move contain outside of mako <!-- Please describe your changes on the following line: --> Sub-PR for #19015. --- <!-- 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 #19656 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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/19682) <!-- Reviewable:end -->
style: Move contain outside of mako <!-- Please describe your changes on the following line: --> Sub-PR for #19015. --- <!-- 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 #19656 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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/19682) <!-- Reviewable:end -->
See #19015.