Run cargo fmt

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 04:35:16 +01:00
parent 20a0577034
commit b957453404
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
17 changed files with 95 additions and 107 deletions

View file

@ -103,7 +103,7 @@ pub struct Builder {
start: Point,
end: Point,
stops: Vec<ColorStop>,
error: Option<BuilderError>
error: Option<BuilderError>,
}
impl Builder {
@ -126,7 +126,7 @@ impl Builder {
start,
end,
stops: vec![],
error: None
error: None,
}
}
@ -148,7 +148,7 @@ impl Builder {
}) {
Ok(_) => {
self.error = Some(BuilderError::DuplicateOffset(offset))
},
}
Err(index) => {
self.stops.insert(index, ColorStop { offset, color });
}