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:
Anthony Ramine 2016-10-04 19:49:57 +02:00
parent b5a04a67fb
commit 1854566683
45 changed files with 381 additions and 352 deletions

View file

@ -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()
}