Skip to content

Commit 01563c7

Browse files
authored
Impl GridItemStyle and BlockContainerStyle for Style (#832)
Previously these were only implemented for &Style. There is a blanket impl that implements these traits for &T where they are implemented for T, so implementing them for Style is more general. Signed-off-by: Nico Burns <[email protected]>
1 parent c3ecb7d commit 01563c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/style/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ impl<T: CoreStyle> CoreStyle for &'_ T {
671671
}
672672

673673
#[cfg(feature = "block_layout")]
674-
impl BlockContainerStyle for &Style {
674+
impl BlockContainerStyle for Style {
675675
#[inline(always)]
676676
fn text_align(&self) -> TextAlign {
677677
self.text_align
@@ -905,7 +905,7 @@ impl<T: GridContainerStyle> GridContainerStyle for &'_ T {
905905
}
906906

907907
#[cfg(feature = "grid")]
908-
impl GridItemStyle for &'_ Style {
908+
impl GridItemStyle for Style {
909909
#[inline(always)]
910910
fn grid_row(&self) -> Line<GridPlacement> {
911911
self.grid_row

0 commit comments

Comments
 (0)