Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix refcell_backtrace feature. #26975

Merged
merged 1 commit into from Jun 19, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -75,8 +75,7 @@ impl<T> DomRefCell<T> {
///
/// Panics if the value is currently mutably borrowed.
pub fn borrow(&self) -> Ref<T> {
self.try_borrow()
.expect("DomRefCell<T> already mutably borrowed")
self.value.borrow()
}

/// Mutably borrows the wrapped value.
@@ -90,8 +89,7 @@ impl<T> DomRefCell<T> {
///
/// Panics if the value is currently borrowed.
pub fn borrow_mut(&self) -> RefMut<T> {
self.try_borrow_mut()
.expect("DomRefCell<T> already borrowed")
self.value.borrow_mut()
}

/// Attempts to immutably borrow the wrapped value.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.