diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-06-25 18:40:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-25 18:40:34 -0500 |
commit | 8dcb12a019885d8333f35f43e43d3f2e0c56573a (patch) | |
tree | 2847a7c88a9988cf33722e1cc059bbf2cca35de6 | |
parent | 80680764562bd4a46bd72a426b8157d59f6a6fd0 (diff) | |
parent | f6fb3eabd84e62fa298f907411cecfee565d3801 (diff) | |
download | servo-8dcb12a019885d8333f35f43e43d3f2e0c56573a.tar.gz servo-8dcb12a019885d8333f35f43e43d3f2e0c56573a.zip |
Auto merge of #11867 - notriddle:master, r=jdm
Clean up code
[:grin:](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 -->
-rw-r--r-- | components/style/values.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/values.rs b/components/style/values.rs index 88a025eb8dd..cd90e5f3bc3 100644 --- a/components/style/values.rs +++ b/components/style/values.rs @@ -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 } } |