diff options
Diffstat (limited to 'components/script/euclidext.rs')
-rw-r--r-- | components/script/euclidext.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/components/script/euclidext.rs b/components/script/euclidext.rs deleted file mode 100644 index c6eb72f89fc..00000000000 --- a/components/script/euclidext.rs +++ /dev/null @@ -1,21 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -use euclid::default::Rect; - -pub trait RectExt { - fn to_u64(&self) -> Rect<u64>; -} - -impl RectExt for Rect<f64> { - fn to_u64(&self) -> Rect<u64> { - self.cast() - } -} - -impl RectExt for Rect<u32> { - fn to_u64(&self) -> Rect<u64> { - self.cast() - } -} |