wip: fill out the snippets

This commit is contained in:
Jonathan Kelley committed 2021-07-20 19:03:49 -04:00
1 parent 4a72b3140b
commit 6051b0ec86
14 files changed
+185 -66

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ impl<'a, T: 'static> UseState<'a, T> {
*self.inner.wip.borrow_mut() = Some(new_val);
}
pub fn get(&self) -> &T {
pub fn get(&self) -> &'a T {
&self.inner.current_val
}