[librsvg] css: remove unneded into_iter
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] css: remove unneded into_iter
- Date: Mon, 11 Nov 2019 12:55:06 +0000 (UTC)
commit 8e4d36c8bfd1b5b4872cd809fb231019da65749c
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Nov 11 12:09:04 2019 +0100
css: remove unneded into_iter
rsvg_internals/src/css.rs | 2 --
rsvg_internals/src/properties.rs | 1 -
2 files changed, 3 deletions(-)
---
diff --git a/rsvg_internals/src/css.rs b/rsvg_internals/src/css.rs
index b7ff5e7c..89d7807c 100644
--- a/rsvg_internals/src/css.rs
+++ b/rsvg_internals/src/css.rs
@@ -242,7 +242,6 @@ impl<'i> QualifiedRuleParser<'i> for RuleParser {
input: &mut Parser<'i, 't>,
) -> Result<Self::QualifiedRule, cssparser::ParseError<'i, Self::Error>> {
let declarations = DeclarationListParser::new(input, DeclParser)
- .into_iter()
.filter_map(Result::ok) // ignore invalid property name or value
.collect();
@@ -568,7 +567,6 @@ impl Stylesheet {
let mut parser = Parser::new(&mut input);
RuleListParser::new_for_stylesheet(&mut parser, RuleParser)
- .into_iter()
.filter_map(Result::ok) // ignore invalid rules
.for_each(|rule| match rule {
Rule::AtRule(AtRule::Import(url)) => {
diff --git a/rsvg_internals/src/properties.rs b/rsvg_internals/src/properties.rs
index 1285c31b..c7764176 100644
--- a/rsvg_internals/src/properties.rs
+++ b/rsvg_internals/src/properties.rs
@@ -603,7 +603,6 @@ impl SpecifiedValues {
let mut parser = Parser::new(&mut input);
DeclarationListParser::new(&mut parser, DeclParser)
- .into_iter()
.filter_map(Result::ok) // ignore invalid property name or value
.for_each(|decl| self.set_property_from_declaration(&decl, important_styles));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]