From 95d904625b4d45af80b4e40d51a3a0fde1abaa8a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 26 Feb 2015 21:00:43 -0800 Subject: std: Deprecate std::old_io::fs This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change. --- src/rustbook/help.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rustbook/help.rs') diff --git a/src/rustbook/help.rs b/src/rustbook/help.rs index 7fd8214f731..995d2f2494a 100644 --- a/src/rustbook/help.rs +++ b/src/rustbook/help.rs @@ -19,7 +19,7 @@ struct Help; pub fn parse_cmd(name: &str) -> Option> { match name { - "help" | "--help" | "-h" | "-?" => Some(box Help as Box), + "help" | "--help" | "-h" | "-?" => Some(Box::new(Help)), _ => None } } -- cgit 1.4.1-3-g733a5