Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechBarczynski committed Oct 11, 2024
1 parent efdb73f commit df37970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions compositor_render/src/transformations/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ enum RenderLayoutContent {
border_width: f32,
},
#[allow(dead_code)]
BoxShadow {
color: RGBAColor,
blur_radius: f32,
},
BoxShadow { color: RGBAColor, blur_radius: f32 },
}

#[derive(Debug, Clone)]
Expand Down
5 changes: 4 additions & 1 deletion compositor_render/src/transformations/layout/flatten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ impl NestedLayout {
return false;
}
match &layout.content {
RenderLayoutContent::Color { color: RGBAColor(_, _, _, 0), .. } => false,
RenderLayoutContent::Color {
color: RGBAColor(_, _, _, 0),
..
} => false,
RenderLayoutContent::Color { .. } => true,
RenderLayoutContent::ChildNode { crop, index, .. } => {
let size = input_resolutions.get(*index).copied().flatten();
Expand Down

0 comments on commit df37970

Please sign in to comment.