From c37a345dc9f4dda6ea29c42f96f6c7201c42cbac Mon Sep 17 00:00:00 2001 From: chansuke Date: Tue, 18 Sep 2018 23:24:15 +0900 Subject: Format script component --- components/script/dom/bindings/cell.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'components/script/dom/bindings/cell.rs') diff --git a/components/script/dom/bindings/cell.rs b/components/script/dom/bindings/cell.rs index c40885866b5..02c538f0506 100644 --- a/components/script/dom/bindings/cell.rs +++ b/components/script/dom/bindings/cell.rs @@ -55,7 +55,6 @@ impl DomRefCell { } } - /// Immutably borrows the wrapped value. /// /// The borrow lasts until the returned `Ref` exits scope. Multiple @@ -67,7 +66,8 @@ impl DomRefCell { /// /// Panics if the value is currently mutably borrowed. pub fn borrow(&self) -> Ref { - self.try_borrow().expect("DomRefCell already mutably borrowed") + self.try_borrow() + .expect("DomRefCell already mutably borrowed") } /// Mutably borrows the wrapped value. @@ -81,7 +81,8 @@ impl DomRefCell { /// /// Panics if the value is currently borrowed. pub fn borrow_mut(&self) -> RefMut { - self.try_borrow_mut().expect("DomRefCell already borrowed") + self.try_borrow_mut() + .expect("DomRefCell already borrowed") } /// Attempts to immutably borrow the wrapped value. -- cgit v1.2.3