Skip to content

Commit

Permalink
Merge pull request #30 from sebcrozet/master
Browse files Browse the repository at this point in the history
Update to the last rust-nightly.
  • Loading branch information
emberian committed May 12, 2014
2 parents 4c1bec5 + 4dcce05 commit bae5526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sax/extfn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! External callback definitions
use libc::{c_char, c_int, c_void};
use std::cast::transmute;
use std::mem::transmute;
use std::comm::Sender;
use std::ptr::null;
use std::str::raw::{from_c_str, from_buf_len};
Expand Down
4 changes: 2 additions & 2 deletions src/sax/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern crate libc;
extern crate sync;

use libc::{c_char, c_int};
use std::cast;
use std::mem;
use std::comm::{Receiver, channel};
use std::str;
use std::io::{File, IoResult};
Expand Down Expand Up @@ -163,7 +163,7 @@ pub fn parse_str(src: &str) -> Receiver<ParseResult> {
let (sender, receiver) = channel();
unsafe {
ffi::xmlSAXUserParseMemory(&extfn::new_handler(),
cast::transmute(&sender),
mem::transmute(&sender),
c_str, len);
}
receiver
Expand Down

0 comments on commit bae5526

Please sign in to comment.