mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix various clippy warnings throughout the code (#33003)
* replace u64::max_value() with u64::MAX Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * removed redundant import Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * Fixed dereference Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * Fixed a probable bug Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * fixed imports Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * fixed dereference Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * dereference formatting Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * removed unnessicary number imports Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * removed unnessicary number imports Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * removed excess borrow Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * ran mach fmt Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * fixed doc comment Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * removed deref on an immutable reference Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * fixed minor syntax error Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * reverted clamping Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * formatting Signed-off-by: Ashwin Naren <arihant2math@gmail.com> * reverted final clamp Signed-off-by: Ashwin Naren <arihant2math@gmail.com> --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com> Co-authored-by: Ashwin Naren <ashwin@pixelators.org>
This commit is contained in:
parent
0d137d276a
commit
ea5cf75169
17 changed files with 25 additions and 29 deletions
|
@ -220,7 +220,7 @@ impl FlexContainer {
|
|||
let mut item_infos = vec![];
|
||||
|
||||
let container_is_horizontal = self.style.writing_mode.is_horizontal();
|
||||
let flex_direction = used_flex_direction(&*self.style);
|
||||
let flex_direction = used_flex_direction(&self.style);
|
||||
let flex_axis = FlexAxis::from(flex_direction);
|
||||
let flex_wrap = self.style.get_position().flex_wrap;
|
||||
let flex_wrap_reverse = match flex_wrap {
|
||||
|
@ -1262,7 +1262,7 @@ impl InitialFlexLineLayout<'_> {
|
|||
let mut max_ascent = Au::zero();
|
||||
let mut max_descent = Au::zero();
|
||||
let mut max_outer_hypothetical_cross_size = Au::zero();
|
||||
for (item_result, item) in item_layout_results.iter().zip(&*items) {
|
||||
for (item_result, item) in item_layout_results.iter().zip(items) {
|
||||
// TODO: check inline-axis is parallel to main axis, check no auto cross margins
|
||||
if matches!(
|
||||
item.align_self.0.value(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue