[librsvg: 33/43] color: cleanup map() call
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 33/43] color: cleanup map() call
- Date: Tue, 15 Oct 2019 00:08:15 +0000 (UTC)
commit 5d1da0e60154bd29aa1c6546faa60875ced042d1
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Oct 13 12:48:16 2019 +0200
color: cleanup map() call
rsvg_internals/src/color.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/color.rs b/rsvg_internals/src/color.rs
index 9531737f..350f1c02 100644
--- a/rsvg_internals/src/color.rs
+++ b/rsvg_internals/src/color.rs
@@ -107,7 +107,7 @@ pub extern "C" fn rsvg_css_parse_color(string: *const libc::c_char) -> ColorSpec
argb: 0,
}
} else {
- ColorSpec::from(<Color as Parse>::parse_str(s).map(|v| Some(v)))
+ ColorSpec::from(<Color as Parse>::parse_str(s).map(Some))
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]