diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-08 11:45:16 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-08 11:45:16 +0100 |
commit | 94b19beefbcc3b63d7274b6fdc774e8f9cb0ee22 (patch) | |
tree | 58e4701e40beae6c102a645099fb7abd4380eb7d /components/geometry/lib.rs | |
parent | f2e7b4ec8ca990ad7c37b0bd1f8215e0456c1206 (diff) | |
download | servo-94b19beefbcc3b63d7274b6fdc774e8f9cb0ee22.tar.gz servo-94b19beefbcc3b63d7274b6fdc774e8f9cb0ee22.zip |
Fix some warnings new in Rust Nightly
Diffstat (limited to 'components/geometry/lib.rs')
-rw-r--r-- | components/geometry/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/geometry/lib.rs b/components/geometry/lib.rs index fd579b7f9bd..81e0eddc028 100644 --- a/components/geometry/lib.rs +++ b/components/geometry/lib.rs @@ -38,11 +38,11 @@ pub enum DeviceIndependentPixel {} // See https://bugzilla.mozilla.org/show_bug.cgi?id=177805 for more info. pub trait MaxRect { - #[inline(always)] fn max_rect() -> Self; } impl MaxRect for Rect<Au> { + #[inline] fn max_rect() -> Rect<Au> { Rect::new( Point2D::new(MIN_AU / 2, MIN_AU / 2), @@ -52,6 +52,7 @@ impl MaxRect for Rect<Au> { } impl MaxRect for LayoutRect { + #[inline] fn max_rect() -> LayoutRect { LayoutRect::new( LayoutPoint::new(f32::MIN / 2.0, f32::MIN / 2.0), |