* Fix #2104: fmt incorrectly using 1-indexing for columns * Clippy...
This commit is contained in:
1 parent
2dc6cecf2e
commit
d8942a255b
17 files changed
+756
-40
No files matched your search
@@ -0,0 +1,18 @@
|
||||
fn main() {
|
||||
rsx! {
|
||||
button {
|
||||
id: "start_stop",
|
||||
onclick: move |_| {
|
||||
timer
|
||||
.with_mut(|t| {
|
||||
t
|
||||
.started_at = if t.started_at.is_none() {
|
||||
Some(Instant::now())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user