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

@ -82,12 +82,12 @@ impl Element {
Self::new(name, ElementKind::Normal)
}
pub fn add(&mut self, component: impl ElementComponent) {
component.add_to_element(self);
pub fn add(&mut self, c: impl ElementComponent) {
c.add_to_element(self);
}
pub fn with(mut self, component: impl ElementComponent) -> Self {
self.add(component);
pub fn with(mut self, c: impl ElementComponent) -> Self {
self.add(c);
self
}
}