Skip to content

Commit 5ad1d99

Browse files
authored
Fix slint_debug_property build: missing '!' and debug_name var needed (slint-ui#10004)
* must be format!() instead of format() * line 1192 uses a debug_name local variable, which got removed Amends commit e11015e ("Two way binding with struct for the interpreter")
1 parent 57b0f12 commit 5ad1d99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/core/properties.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,12 +1174,15 @@ impl<T: PartialEq + Clone + 'static> Property<T> {
11741174
PropertyHandle::default()
11751175
};
11761176

1177+
#[cfg(slint_debug_property)]
1178+
let debug_name = alloc::format!("{}*", prop1.debug_name.borrow());
1179+
11771180
let common_property = Rc::pin(Property {
11781181
handle,
11791182
value: UnsafeCell::new(prop1.get_internal()),
11801183
pinned: PhantomPinned,
11811184
#[cfg(slint_debug_property)]
1182-
debug_name: alloc::format("{}*", prop1.debug_name.borrow()).into(),
1185+
debug_name: debug_name.clone().into(),
11831186
});
11841187
// Safety: TwoWayBinding's T is the same as the type for both properties
11851188
unsafe {

0 commit comments

Comments
 (0)