rustpkg borrowed pointers
This commit is contained in:
parent
7281166961
commit
1f27c6306d
1 changed files with 3 additions and 3 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue