Skip to content

Commit 1f27c63

Browse files
committed
rustpkg borrowed pointers
1 parent 7281166 commit 1f27c63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustpkg/util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,15 +292,15 @@ fn pretty_message<'a>(msg: &'a str, prefix: &'a str, color: u8, out: @io::Writer
292292
out.write_line(msg);
293293
}
294294

295-
pub fn note(msg: ~str) {
295+
pub fn note(msg: &str) {
296296
pretty_message(msg, "note: ", term::color_green, io::stdout())
297297
}
298298

299-
pub fn warn(msg: ~str) {
299+
pub fn warn(msg: &str) {
300300
pretty_message(msg, "warning: ", term::color_yellow, io::stdout())
301301
}
302302

303-
pub fn error(msg: ~str) {
303+
pub fn error(msg: &str) {
304304
pretty_message(msg, "error: ", term::color_red, io::stdout())
305305
}
306306

0 commit comments

Comments
 (0)