mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix a bunch of clippy lints
This commit is contained in:
parent
b1ca3d1cdf
commit
6b215f38ee
58 changed files with 281 additions and 356 deletions
|
@ -359,9 +359,9 @@ impl CompositorLayer for Layer<CompositorData> {
|
|||
}
|
||||
|
||||
if result {
|
||||
return ScrollEventResult::ScrollPositionChanged;
|
||||
ScrollEventResult::ScrollPositionChanged
|
||||
} else {
|
||||
return ScrollEventResult::ScrollPositionUnchanged;
|
||||
ScrollEventResult::ScrollPositionUnchanged
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -414,7 +414,7 @@ impl CompositorLayer for Layer<CompositorData> {
|
|||
result |= child.scroll_layer_and_all_child_layers(offset_for_children);
|
||||
}
|
||||
|
||||
return result;
|
||||
result
|
||||
}
|
||||
|
||||
fn wants_scroll_events(&self) -> WantsScrollEventsFlag {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue