diff options
| author | Corey Richardson <corey@octayn.net> | 2013-05-30 02:26:33 -0400 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-05-31 20:02:49 -0400 |
| commit | 1f27c6306d9f376f9b629a98f8a57c2e43e59b41 (patch) | |
| tree | 537a150553685f2fa1ecf7a715c37ca8da5b3693 /src/librustpkg | |
| parent | 72811669619c593249de876003ee2205710a8fcf (diff) | |
| download | rust-1f27c6306d9f376f9b629a98f8a57c2e43e59b41.tar.gz rust-1f27c6306d9f376f9b629a98f8a57c2e43e59b41.zip | |
rustpkg borrowed pointers
Diffstat (limited to 'src/librustpkg')
| -rw-r--r-- | src/librustpkg/util.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustpkg/util.rs b/src/librustpkg/util.rs index f6f8c6f6754..213ac4f22e2 100644 --- a/src/librustpkg/util.rs +++ b/src/librustpkg/util.rs @@ -292,15 +292,15 @@ fn pretty_message<'a>(msg: &'a str, prefix: &'a str, color: u8, out: @io::Writer out.write_line(msg); } -pub fn note(msg: ~str) { +pub fn note(msg: &str) { pretty_message(msg, "note: ", term::color_green, io::stdout()) } -pub fn warn(msg: ~str) { +pub fn warn(msg: &str) { pretty_message(msg, "warning: ", term::color_yellow, io::stdout()) } -pub fn error(msg: ~str) { +pub fn error(msg: &str) { pretty_message(msg, "error: ", term::color_red, io::stdout()) } |
