Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy fixes #2614

Merged
merged 9 commits into from Apr 6, 2018

webrender: Remove unneeded return statements.

  • Loading branch information
waywardmonkeys committed Apr 5, 2018
commit 4a6a80f345f2348fa4f9c7c2f6d707063db1455a
@@ -122,7 +122,7 @@ impl Ellipse {

let si = (1.0 - co * co).sqrt();
let r = LayerVector2D::new(ab.x * co, ab.y * si);
return (r - p).length() * (p.y - r.y).signum();
(r - p).length() * (p.y - r.y).signum()
}
}

@@ -283,7 +283,7 @@ pub fn recycle_vec<T>(mut old_vec: Vec<T>) -> Vec<T> {

old_vec.clear();

return old_vec;
old_vec
}


@@ -414,7 +414,7 @@ impl<Src, Dst> FastTransform<Src, Dst> {
pub fn pre_translate(&self, other_offset: &TypedVector2D<f32, Src>) -> Self {
match self {
&FastTransform::Offset(ref offset) =>
return FastTransform::Offset(*offset + *other_offset),
FastTransform::Offset(*offset + *other_offset),
&FastTransform::Transform { transform, .. } =>
FastTransform::with_transform(transform.pre_translate(other_offset.to_3d()))
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.