aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-20 14:30:30 +0100
committerMs2ger <ms2ger@gmail.com>2015-03-20 17:57:49 +0100
commit1604515fd9456a8ee03791b38c63cb5818b68082 (patch)
tree9dc8e7d80f918823ffe49454c114af98bf436d81 /components/script/parse/html.rs
parent717805a593b58c69763dcabadff0b4aff182c80b (diff)
downloadservo-1604515fd9456a8ee03791b38c63cb5818b68082.tar.gz
servo-1604515fd9456a8ee03791b38c63cb5818b68082.zip
Fix various build warnings.
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r--components/script/parse/html.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 261bf143ed8..7d2dbf06741 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -30,8 +30,8 @@ use net::resource_task::{ProgressMsg, LoadResponse};
use util::task_state;
use util::task_state::IN_HTML_PARSER;
use std::ascii::AsciiExt;
+use std::borrow::Cow;
use std::old_io::{Writer, IoResult};
-use std::string::CowString;
use url::Url;
use html5ever::Attribute;
use html5ever::serialize::{Serializable, Serializer, AttrRef};
@@ -120,7 +120,7 @@ impl<'a> TreeSink for servohtmlparser::Sink {
Ok(())
}
- fn parse_error(&mut self, msg: CowString<'static>) {
+ fn parse_error(&mut self, msg: Cow<'static, str>) {
debug!("Parse error: {}", msg);
}