Fix a bunch of clippy lints

This commit is contained in:
Johannes Linke 2016-01-02 16:51:01 +01:00
parent b1ca3d1cdf
commit 6b215f38ee
58 changed files with 281 additions and 356 deletions

View file

@ -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 {