about summary refs log tree commit diff
path: root/src/libstd/task.rs
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-06-14 11:11:09 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2014-06-14 11:11:09 +1000
commit0642cbbde0e51d5f4465b937ab8ff7d46df02df0 (patch)
tree8e54a19b6d39982bd8c70a47f56173123f2b4e23 /src/libstd/task.rs
parent3851d68a27d41dfd15e12a75b590f362a0675870 (diff)
downloadrust-0642cbbde0e51d5f4465b937ab8ff7d46df02df0.tar.gz
rust-0642cbbde0e51d5f4465b937ab8ff7d46df02df0.zip
getopts: format failure messages with `Show`.
This obsoletes the old `to_err_msg` method. Replace

    println!("Error: {}", failure.to_err_msg())

    let string = failure.to_err_msg();

with

    println!("Error: {}", failure)

    let string = failure.to_str();

[breaking-change]
Diffstat (limited to 'src/libstd/task.rs')
0 files changed, 0 insertions, 0 deletions