From 8a356a08f8d726c99c16555e9bd1028f198f76a5 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Sat, 12 Jul 2014 22:13:14 +0200 Subject: [PATCH] getopts: example does not build error: type `getopts::Fail_` does not implement any method in scope named `to_string` Not needed. Fail_ implements Show. --- src/libgetopts/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs index eaec31a45f421..43e5ba8d49341 100644 --- a/src/libgetopts/lib.rs +++ b/src/libgetopts/lib.rs @@ -59,7 +59,7 @@ //! ]; //! let matches = match getopts(args.tail(), opts) { //! Ok(m) => { m } -//! Err(f) => { fail!(f.to_string()) } +//! Err(f) => { fail!(f) } //! }; //! if matches.opt_present("h") { //! print_usage(program.as_slice(), opts);