Apply clippy lints (#278)

This commit is contained in:
TrueDoctor
2021-07-17 11:12:37 +02:00
committed by GitHub
parent d57bfb87ee
commit 4637cbf12b
10 changed files with 43 additions and 61 deletions

View File

@@ -135,7 +135,7 @@ impl Layer {
name: None,
data,
transform: glam::DAffine2::from_cols_array(&transform),
style: style,
style,
cache: String::new(),
cache_dirty: true,
}
@@ -171,7 +171,7 @@ impl Layer {
*svg += self.render();
}
pub fn to_kurbo_path(&mut self) -> BezPath {
pub fn to_kurbo_path(&self) -> BezPath {
self.data.to_kurbo_path(self.transform, self.style)
}
@@ -198,9 +198,8 @@ impl Layer {
}
pub fn render_as_folder(&mut self, svg: &mut String) {
match &mut self.data {
LayerDataTypes::Folder(f) => f.render(svg, self.transform, self.style),
_ => {}
if let LayerDataTypes::Folder(f) = &mut self.data {
f.render(svg, self.transform, self.style)
}
}
}