Skip to content

Commit 0c2ee2b

Browse files
committed
Automated fixes to follow Rust development
Applied fixes: *priv attribute removal *attribute fix (cf rust-lang/rust#2569) *Rename Port to Receiver (cf rust-lang/rust@7858065) *logging macros need the log crate
1 parent df0b4b5 commit 0c2ee2b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/statsd/client.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ data and timing a function call). Most work is handled by the server.
1414
**TODO**: allow prefixing keys.
1515
*/
1616
pub struct Client {
17-
priv dest: SocketAddr,
18-
priv sock: UdpSocket
17+
dest: SocketAddr,
18+
sock: UdpSocket
1919
}
2020

2121

src/statsd/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ will be received by the server, and there is (by design) no indication of
88
this.
99
*/
1010

11-
#[comment = "statsd implementation"];
12-
#[license = "MIT"];
13-
#[crate_type = "lib"];
14-
#[crate_id = "statsd#0.0.0"];
11+
#![comment = "statsd implementation"]
12+
#![license = "MIT"]
13+
#![crate_type = "lib"]
14+
#![crate_id = "statsd#0.0.0"]
1515

1616
extern crate test;
1717
extern crate time;

src/statsd/server/main.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![feature(phase)]
2+
#[phase(syntax, link)]
3+
extern crate log;
14
extern crate std;
25
extern crate test;
36
extern crate sync;
@@ -118,7 +121,7 @@ fn print_usage() {
118121
println!("Usage: {} [options]", os::args()[0]);
119122
println!(" -h --help Show usage information");
120123
println!(" --graphite host[:port] Enable the graphite backend. \
121-
Port will default to 2003 if not specified.");
124+
Receiver will default to 2003 if not specified.");
122125
println!(" --console Enable console output.");
123126
println!(" --port port Have the statsd server listen on this \
124127
UDP port. Defaults to {}.", DEFAULT_UDP_PORT);

0 commit comments

Comments
 (0)