mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Clean up code
😁
This commit is contained in:
parent
86d65b6064
commit
f6fb3eabd8
1 changed files with 2 additions and 2 deletions
|
@ -1176,6 +1176,7 @@ pub mod specified {
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, PartialOrd, Copy, Debug)]
|
#[derive(Clone, PartialEq, PartialOrd, Copy, Debug)]
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))]
|
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))]
|
||||||
|
/// An angle, normalized to radians.
|
||||||
pub struct Angle(pub CSSFloat);
|
pub struct Angle(pub CSSFloat);
|
||||||
|
|
||||||
impl ToCss for Angle {
|
impl ToCss for Angle {
|
||||||
|
@ -1187,8 +1188,7 @@ pub mod specified {
|
||||||
impl Angle {
|
impl Angle {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn radians(self) -> f32 {
|
pub fn radians(self) -> f32 {
|
||||||
let Angle(radians) = self;
|
self.0
|
||||||
radians
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue