Skip to content

Commit

Permalink
Auto merge of #73 - servo:warnings, r=KiChjang
Browse files Browse the repository at this point in the history
Fix some warnings.
  • Loading branch information
bors-servo committed May 19, 2016
2 parents 8c55262 + 5258aec commit 847a459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// except according to those terms.

#![feature(custom_derive, plugin, slice_patterns)]
#![feature(mpsc_select, borrow_state)]
#![cfg_attr(test, feature(time2))]
#![feature(borrow_state)]
#![plugin(serde_macros)]

#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion platform/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ impl UnixOneShotServer {
let fd = libc::socket(libc::AF_UNIX, SOCK_SEQPACKET, 0);
let mut path: Vec<u8>;
loop {
let path_string = CString::new(b"/tmp/rust-ipc-socket.XXXXXX" as &[u8]).unwrap();
let path_string = CString::new(&b"/tmp/rust-ipc-socket.XXXXXX"[..]).unwrap();
path = path_string.as_bytes_with_nul().iter().cloned().collect();
if *mktemp(path.as_mut_ptr() as *mut c_char) == 0 {
return Err(UnixError::last())
Expand Down

0 comments on commit 847a459

Please sign in to comment.