No bug - Remove a map(From::from) statement that does literally nothing. r=trivial
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 06 Jul 2019 11:41:01 +0200
changeset 544390 9f93598c61f531672033a592879521ae4f2fcd08
parent 544389 8a393a44cfd0d84c1dacc7da190b8138d5b031e4
child 544391 01f4651b1ca8010dd2b900fe8236ed9f449359bd
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstrivial
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
No bug - Remove a map(From::from) statement that does literally nothing. r=trivial
servo/components/style/values/specified/border.rs
--- a/servo/components/style/values/specified/border.rs
+++ b/servo/components/style/values/specified/border.rs
@@ -237,17 +237,17 @@ impl Parse for BorderCornerRadius {
 }
 
 impl Parse for BorderSpacing {
     fn parse<'i, 't>(
         context: &ParserContext,
         input: &mut Parser<'i, 't>,
     ) -> Result<Self, ParseError<'i>> {
         Size2D::parse_with(context, input, |context, input| {
-            NonNegativeLength::parse_quirky(context, input, AllowQuirks::Yes).map(From::from)
+            NonNegativeLength::parse_quirky(context, input, AllowQuirks::Yes)
         })
         .map(GenericBorderSpacing)
     }
 }
 
 /// A single border-image-repeat keyword.
 #[allow(missing_docs)]
 #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]