aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_wrapper.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-06-18 13:21:32 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-06-18 13:21:49 +0200
commit7af5a7fd5409ab8db0274eb829136e5953e718ed (patch)
treeee7103d6651e45943609118f93cc8789ebbb4d86 /components/script/layout_wrapper.rs
parenta5bb55790fe34de6e6dc561314d2a9491972585e (diff)
downloadservo-7af5a7fd5409ab8db0274eb829136e5953e718ed.tar.gz
servo-7af5a7fd5409ab8db0274eb829136e5953e718ed.zip
Untry script
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r--components/script/layout_wrapper.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs
index 1d28242e926..aaaf5cce107 100644
--- a/components/script/layout_wrapper.rs
+++ b/components/script/layout_wrapper.rs
@@ -371,9 +371,9 @@ pub struct ServoLayoutElement<'le> {
impl<'le> fmt::Debug for ServoLayoutElement<'le> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- try!(write!(f, "<{}", self.element.local_name()));
+ write!(f, "<{}", self.element.local_name())?;
if let &Some(ref id) = unsafe { &*self.element.id_attribute() } {
- try!(write!(f, " id={}", id));
+ write!(f, " id={}", id)?;
}
write!(f, "> ({:#x})", self.as_node().opaque().0)
}