mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
Update StyledExt to impl over I & F as well as V for Div
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
f4abd95866
commit
9bdfc7a2e5
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
use gpui::{Div, Styled};
|
use gpui::{Div, ElementFocus, ElementInteractivity, Styled};
|
||||||
|
|
||||||
use crate::UITextSize;
|
use crate::UITextSize;
|
||||||
|
|
||||||
|
@ -66,4 +66,9 @@ pub trait StyledExt: Styled {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<V: 'static> StyledExt for Div<V> {}
|
impl<V, I, F> StyledExt for Div<V, I, F>
|
||||||
|
where
|
||||||
|
I: ElementInteractivity<V>,
|
||||||
|
F: ElementFocus<V>,
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue