Skip to content

Commit 583a608

Browse files
committed
Automated fixes to follow Rust development
Applied fixes: *priv attribute removal *attribute fix (cf rust-lang/rust#2569)
1 parent e09ac09 commit 583a608

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/zmq/lib.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//! Module: zmq
22
3-
#[crate_id = "zmq#0.5-pre"];
3+
#![crate_id = "zmq#0.5-pre"]
44

5-
#[license = "MIT/ASL2"];
6-
#[crate_type = "dylib"];
7-
#[crate_type = "rlib"];
5+
#![license = "MIT/ASL2"]
6+
#![crate_type = "dylib"]
7+
#![crate_type = "rlib"]
88

9-
#[feature(phase, macro_rules)];
9+
#![feature(phase, macro_rules)]
1010

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

267267
impl Context {
@@ -303,8 +303,8 @@ impl Drop for Context {
303303
}
304304

305305
pub struct Socket {
306-
priv sock: Socket_,
307-
priv closed: bool
306+
sock: Socket_,
307+
closed: bool
308308
}
309309

310310
impl Drop for Socket {
@@ -594,7 +594,7 @@ impl Socket {
594594
}
595595

596596
pub struct Message {
597-
priv msg: Msg_
597+
msg: Msg_
598598
}
599599

600600
impl Drop for Message {
@@ -640,10 +640,10 @@ pub static POLLOUT : i16 = 2i16;
640640
pub static POLLERR : i16 = 4i16;
641641

642642
pub struct PollItem {
643-
priv socket: Socket_,
644-
priv fd: c_int,
645-
priv events: i16,
646-
priv revents: i16
643+
socket: Socket_,
644+
fd: c_int,
645+
events: i16,
646+
revents: i16
647647
}
648648

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

0 commit comments

Comments
 (0)