aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/servo/html')
-rw-r--r--src/servo/html/hubbub_html_parser.rs2
-rw-r--r--src/servo/html/lexer_util.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/servo/html/hubbub_html_parser.rs b/src/servo/html/hubbub_html_parser.rs
index 0846540b622..8c366e94109 100644
--- a/src/servo/html/hubbub_html_parser.rs
+++ b/src/servo/html/hubbub_html_parser.rs
@@ -14,7 +14,7 @@ use JSMessage = html::dom_builder::js_message;
use comm::{Chan, Port};
use str::from_slice;
-use unsafe::reinterpret_cast;
+use cast::reinterpret_cast;
use std::net::url::Url;
type JSResult = ~[~[u8]];
diff --git a/src/servo/html/lexer_util.rs b/src/servo/html/lexer_util.rs
index 4f99f5b6441..0e54d0836fd 100644
--- a/src/servo/html/lexer_util.rs
+++ b/src/servo/html/lexer_util.rs
@@ -12,14 +12,14 @@ enum CharOrEof {
}
impl CharOrEof: cmp::Eq {
- pure fn eq(&&other: CharOrEof) -> bool {
- match (self, other) {
+ pure fn eq(other: &CharOrEof) -> bool {
+ match (self, *other) {
(CoeChar(a), CoeChar(b)) => a == b,
(CoeChar(*), _) | (_, CoeChar(*)) => false,
(CoeEof, CoeEof) => true,
}
}
- pure fn ne(&&other: CharOrEof) -> bool {
+ pure fn ne(other: &CharOrEof) -> bool {
return !self.eq(other);
}
}