mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #11867 - notriddle:master, r=jdm
Clean up code [😁](http://programmer.97things.oreilly.com/wiki/index.php/The_Boy_Scout_Rule) - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes do not require tests because cleanup <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11867) <!-- Reviewable:end -->
This commit is contained in:
commit
8dcb12a019
1 changed files with 2 additions and 2 deletions
|
@ -1176,6 +1176,7 @@ pub mod specified {
|
|||
|
||||
#[derive(Clone, PartialEq, PartialOrd, Copy, Debug)]
|
||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf, Deserialize, Serialize))]
|
||||
/// An angle, normalized to radians.
|
||||
pub struct Angle(pub CSSFloat);
|
||||
|
||||
impl ToCss for Angle {
|
||||
|
@ -1187,8 +1188,7 @@ pub mod specified {
|
|||
impl Angle {
|
||||
#[inline]
|
||||
pub fn radians(self) -> f32 {
|
||||
let Angle(radians) = self;
|
||||
radians
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue