rename take to manually drop
This commit is contained in:
1 parent
60a84956d1
commit
5f9e5f607b
4 files changed
+11
-11
No files matched your search
@@ -50,7 +50,9 @@ impl<T: 'static, S: Storage<SignalData<T>>> ReadOnlySignal<T, S> {
|
||||
#[doc(hidden)]
|
||||
/// This should only be used by the `rsx!` macro.
|
||||
pub fn __take(&self) -> T {
|
||||
self.inner.take()
|
||||
self.inner
|
||||
.manually_drop()
|
||||
.expect("Signal has already been dropped")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user