From 78d9f109d2f1cee3851d0e743b9dff2447010651 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 22 Mar 2014 11:21:00 +0100 Subject: [PATCH 1/2] Update to current rust: std::vec -> std::slice. --- hubbub.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hubbub.rs b/hubbub.rs index e552de7..3d543f4 100644 --- a/hubbub.rs +++ b/hubbub.rs @@ -211,8 +211,8 @@ pub mod tree_callbacks { use std::cast; use std::libc::{c_void, c_char}; use std::ptr::RawPtr; + use std::slice; use std::str; - use std::vec; use super::{NodeDataPtr, Ns, NullNs, HtmlNs, MathMlNs, SvgNs, XLinkNs, XmlNs, XmlNsNs}; use super::{QuirksMode, NoQuirks, LimitedQuirks, FullQuirks}; use super::{Attribute, Tag, Doctype, TreeHandlerPair}; @@ -258,7 +258,7 @@ pub mod tree_callbacks { pub fn from_hubbub_attributes(attributes: *ll::Attribute, n_attributes: u32) -> ~[Attribute] { debug!("from_hubbub_attributes n={:u}", n_attributes as uint); unsafe { - vec::from_fn(n_attributes as uint, |i| { + slice::from_fn(n_attributes as uint, |i| { let attribute = attributes.offset(i as int); Attribute { ns: from_hubbub_ns((*attribute).ns), From bc8edc700494cf0797ee918fe0d92bfadb7d712d Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sat, 22 Mar 2014 11:21:12 +0100 Subject: [PATCH 2/2] Update to current rust: import the logging macros. --- hubbub.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hubbub.rc b/hubbub.rc index b98242e..a5ecb9c 100644 --- a/hubbub.rc +++ b/hubbub.rc @@ -10,6 +10,9 @@ #[crate_id = "github.com/mozilla-servo/rust-hubbub#hubbub:0.1"]; #[crate_type = "lib"]; +#[feature(phase)]; +#[phase(syntax, link)] extern crate log; + pub mod hubbub; pub mod ll;