Make inlay hints less annoying
This commit is contained in:
parent
af61307c9f
commit
0294d3435c
4 changed files with 10 additions and 10 deletions
|
|
@ -9,8 +9,8 @@ macro_rules! element {
|
|||
element!($name, ElementKind::Normal);
|
||||
};
|
||||
( $name:ident, $kind:expr ) => {
|
||||
pub fn $name(component: impl ElementComponent) -> Element {
|
||||
Element::new(stringify!($name), $kind).with(component)
|
||||
pub fn $name(c: impl ElementComponent) -> Element {
|
||||
Element::new(stringify!($name), $kind).with(c)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue