Make inlay hints less annoying

This commit is contained in:
Joscha 2024-11-27 17:57:22 +01:00
parent af61307c9f
commit 0294d3435c
4 changed files with 10 additions and 10 deletions

View file

@ -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)
}
};
}