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 <nico@nicoburns.com>
Semantic delta
No definition changed: this change is text, documentation or data.
1 files · +2 −2
- src/style/mod.rs +2 −2
diff --git a/src/style/mod.rs b/src/style/mod.rs
index 3c894cd42..f312cf76b 100644
--- a/src/style/mod.rs
+++ b/src/style/mod.rs
@@ -671,7 +671,7 @@ impl<T: CoreStyle> CoreStyle for &'_ T {
}
#[cfg(feature = "block_layout")]
-impl BlockContainerStyle for &Style {
+impl BlockContainerStyle for Style {
#[inline(always)]
fn text_align(&self) -> TextAlign {
self.text_align
@@ -905,7 +905,7 @@ impl<T: GridContainerStyle> GridContainerStyle for &'_ T {
}
#[cfg(feature = "grid")]
-impl GridItemStyle for &'_ Style {
+impl GridItemStyle for Style {
#[inline(always)]
fn grid_row(&self) -> Line<GridPlacement> {
self.grid_row