From cf122e39ae6c5af764db4d69a1b976cf319f3892 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 12 Aug 2013 13:07:28 -0700 Subject: [PATCH] Update to latest Rust --- hubbub.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hubbub.rs b/hubbub.rs index f451555..fc6f642 100644 --- a/hubbub.rs +++ b/hubbub.rs @@ -95,7 +95,7 @@ impl Drop for Parser { pub fn Parser(encoding: &str, fix_encoding: bool) -> Parser { let hubbub_parser = null(); - let hubbub_error = do encoding.as_c_str |encoding_c: *libc::c_char| { + let hubbub_error = do encoding.to_c_str().with_ref |encoding_c: *libc::c_char| { unsafe { ll::parser::hubbub_parser_create(cast::transmute(encoding_c), fix_encoding, allocator, null(), to_unsafe_ptr(&hubbub_parser))