add clone to macro

This commit is contained in:
Vinzenz Schroeter 2025-06-13 01:13:51 +02:00
parent 14970c0ac4
commit 9fa09fe33e
7 changed files with 8 additions and 30 deletions

View file

@ -23,11 +23,6 @@ impl BrightnessGrid {
).unwrap())
}
#[uniffi::constructor]
pub fn clone(other: &Arc<Self>) -> Arc<Self> {
Self::internal_new(other.actual.read().unwrap().clone())
}
pub fn set(&self, x: u64, y: u64, value: u8) {
self.actual.write().unwrap().set(
x as usize,