cargo-clippy: Remove redundant closures

parent e5cb5819
......@@ -59,7 +59,7 @@ impl PaintServer {
alternate: PaintServer::parse_fallback(input),
})
} else {
PaintServer::parse_color(input).map(|color| PaintServer::SolidColor(color))
PaintServer::parse_color(input).map(PaintServer::SolidColor)
}
}
......@@ -71,8 +71,8 @@ impl PaintServer {
} else {
input
.try(|i| cssparser::Color::parse(i))
.map(|c| Color::from(c))
.map_err(|e| AttributeError::from(e))
.map(Color::from)
.map_err(AttributeError::from)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment