Retain request dependencies only when discovery supplies the answer

This commit is contained in:
iris-ai committed 2026-09-20 17:31:53 -04:00
1 parent 8780b40bb7
commit 0e838e9dd1
7 files changed
+183 -50

No files matched your search

+2 -2
View File
@@ -128,8 +128,8 @@ impl Widgets {
}
/// The length rules whoever draws this widget applies to its box.
pub fn size_rules(&self, id: impl IdLike) -> SizeRules {
self.data(id).unwrap().size.clone()
pub fn size_rules(&self, id: impl IdLike) -> &SizeRules {
&self.data(id).unwrap().size
}
/// Sets one axis's rule. The widget is marked rather than its parent