mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update to Rust 1.14.0-nightly (19ac57926 2016-10-08)
A cargo bump and a switch to serde_derive is needed to do this rustup.
This commit is contained in:
parent
b5a04a67fb
commit
1854566683
45 changed files with 381 additions and 352 deletions
|
@ -106,7 +106,7 @@ impl<T> DOMRefCell<T> {
|
|||
/// # Panics
|
||||
///
|
||||
/// Panics if this is called off the script thread.
|
||||
pub fn try_borrow(&self) -> Result<Ref<T>, BorrowError<T>> {
|
||||
pub fn try_borrow(&self) -> Result<Ref<T>, BorrowError> {
|
||||
debug_assert!(thread_state::get().is_script());
|
||||
self.value.try_borrow()
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ impl<T> DOMRefCell<T> {
|
|||
/// # Panics
|
||||
///
|
||||
/// Panics if this is called off the script thread.
|
||||
pub fn try_borrow_mut(&self) -> Result<RefMut<T>, BorrowMutError<T>> {
|
||||
pub fn try_borrow_mut(&self) -> Result<RefMut<T>, BorrowMutError> {
|
||||
debug_assert!(thread_state::get().is_script());
|
||||
self.value.try_borrow_mut()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue