Skip to content

Commit

Permalink
Automated fixes to follow Rust development
Browse files Browse the repository at this point in the history
Applied fixes:
	*priv attribute removal
	*attribute fix (cf rust-lang/rust#2569)
  • Loading branch information
Geal committed Apr 2, 2014
1 parent e09ac09 commit 583a608
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/zmq/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//! Module: zmq

#[crate_id = "zmq#0.5-pre"];
#![crate_id = "zmq#0.5-pre"]

#[license = "MIT/ASL2"];
#[crate_type = "dylib"];
#[crate_type = "rlib"];
#![license = "MIT/ASL2"]
#![crate_type = "dylib"]
#![crate_type = "rlib"]

#[feature(phase, macro_rules)];
#![feature(phase, macro_rules)]

#[phase(syntax, link)]
extern crate log;
Expand Down Expand Up @@ -261,7 +261,7 @@ pub fn version() -> (int, int, int) {
/// For this reason, one should use an Arc to share it, rather than any unsafe
/// trickery you might think up that would call the destructor.
pub struct Context {
priv ctx: Context_,
ctx: Context_,
}

impl Context {
Expand Down Expand Up @@ -303,8 +303,8 @@ impl Drop for Context {
}

pub struct Socket {
priv sock: Socket_,
priv closed: bool
sock: Socket_,
closed: bool
}

impl Drop for Socket {
Expand Down Expand Up @@ -594,7 +594,7 @@ impl Socket {
}

pub struct Message {
priv msg: Msg_
msg: Msg_
}

impl Drop for Message {
Expand Down Expand Up @@ -640,10 +640,10 @@ pub static POLLOUT : i16 = 2i16;
pub static POLLERR : i16 = 4i16;

pub struct PollItem {
priv socket: Socket_,
priv fd: c_int,
priv events: i16,
priv revents: i16
socket: Socket_,
fd: c_int,
events: i16,
revents: i16
}

pub fn poll(items: &mut [PollItem], timeout: i64) -> Result<(), Error> {
Expand Down

0 comments on commit 583a608

Please sign in to comment.