diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-07-07 16:48:13 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-07-07 16:52:48 +0200 |
commit | 7852bcd626133ef1c3c82658512f56fd66a54772 (patch) | |
tree | 39a1b0822110aa411e2682ef0e53996ba8f404d5 /src/components/script/html/hubbub_html_parser.rs | |
parent | 7babb6d104d28119d95d2309d686a388717eb95c (diff) | |
download | servo-7852bcd626133ef1c3c82658512f56fd66a54772.tar.gz servo-7852bcd626133ef1c3c82658512f56fd66a54772.zip |
Print a more helpful debug message when creating an element in the HTML parser.
Using {:?} prints a debugging representation such as
collections::string::String{
vec: collections::vec::Vec<u8>{
len: 4u,
cap: 4u,
ptr: (0x7f75670285d8 as *mut ())
}
}
which is not very helpful.
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r-- | src/components/script/html/hubbub_html_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs index baacfcef52c..5f4184b5dea 100644 --- a/src/components/script/html/hubbub_html_parser.rs +++ b/src/components/script/html/hubbub_html_parser.rs @@ -369,7 +369,7 @@ pub fn parse_html(page: &Page, } }, create_element: |tag: Box<hubbub::Tag>| { - debug!("create element {:?}", tag.name.clone()); + debug!("create element {}", tag.name); // NOTE: tmp vars are workaround for lifetime issues. Both required. let tmp_borrow = doc_cell.borrow(); let tmp = &*tmp_borrow; |