[librsvg/librsvg-2.46] color: cleanup map() call
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.46] color: cleanup map() call
- Date: Tue, 15 Oct 2019 16:46:48 +0000 (UTC)
commit 4ba91d9f225aebdceb90d811169b24021c071984
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]