Bug 1550389 - Remove unnecessary mut usage.
authorEmilio Cobos Álvarez <emilio@crisal.io>
Thu, 09 May 2019 05:45:10 +0200
changeset 531983 3390fa47ebcd66eadead3c8bfe75d61f52c6812a
parent 531982 9d0b46d9bb9ac851d04c0cce35e00d247ec77a6b
child 531984 6f7cd5ebb041ea3c4de4206d5489883e239ffbb5
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1550389
milestone68.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
Bug 1550389 - Remove unnecessary mut usage.
servo/components/style/properties/declaration_block.rs
--- a/servo/components/style/properties/declaration_block.rs
+++ b/servo/components/style/properties/declaration_block.rs
@@ -1377,17 +1377,17 @@ fn report_one_css_error<'i>(
 
 #[cold]
 fn report_css_errors(
     context: &ParserContext,
     block: &PropertyDeclarationBlock,
     selectors: Option<&SelectorList<SelectorImpl>>,
     errors: &mut SmallParseErrorVec,
 ) {
-    for (mut error, slice, property) in errors.drain() {
+    for (error, slice, property) in errors.drain() {
         report_one_css_error(context, Some(block), selectors, error, slice, property)
     }
 }
 
 /// Parse a list of property declarations and return a property declaration
 /// block.
 pub fn parse_property_declaration_list(
     context: &ParserContext,