[librsvg] rustfmt
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rustfmt
- Date: Sun, 30 Dec 2018 17:27:57 +0000 (UTC)
commit 6595d3b6615a88c92ec34741e7a70e1b16b7aafc
Author: Federico Mena Quintero <federico gnome org>
Date: Sun Dec 30 11:26:56 2018 -0600
rustfmt
rsvg_internals/src/gradient.rs | 14 ++++++++++++--
rsvg_internals/src/stop.rs | 9 ++++-----
2 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index 75e079f4..2b00f518 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -187,7 +187,12 @@ impl GradientCommon {
self.fallback = fallback.fallback.clone();
}
- fn add_color_stop(&mut self, offset: UnitInterval, rgba: cssparser::RGBA, opacity: UnitInterval) {
+ fn add_color_stop(
+ &mut self,
+ offset: UnitInterval,
+ rgba: cssparser::RGBA,
+ opacity: UnitInterval,
+ ) {
if self.stops.is_none() {
self.stops = Some(Vec::<ColorStop>::new());
}
@@ -399,7 +404,12 @@ impl Gradient {
});
}
- fn add_color_stop(&mut self, offset: UnitInterval, rgba: cssparser::RGBA, opacity: UnitInterval) {
+ fn add_color_stop(
+ &mut self,
+ offset: UnitInterval,
+ rgba: cssparser::RGBA,
+ opacity: UnitInterval,
+ ) {
self.common.add_color_stop(offset, rgba, opacity);
}
diff --git a/rsvg_internals/src/stop.rs b/rsvg_internals/src/stop.rs
index cf7ca4fd..6317d876 100644
--- a/rsvg_internals/src/stop.rs
+++ b/rsvg_internals/src/stop.rs
@@ -39,11 +39,10 @@ impl NodeTrait for NodeStop {
for (attr, value) in pbag.iter() {
match attr {
Attribute::Offset => {
- self.offset.set(attr.parse_and_validate(
- value,
- LengthDir::Both,
- validate_offset,
- ).map(|l| UnitInterval::clamp(l.length))?);
+ self.offset.set(
+ attr.parse_and_validate(value, LengthDir::Both, validate_offset)
+ .map(|l| UnitInterval::clamp(l.length))?,
+ );
}
_ => (),
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]