about summary refs log tree commit diff
path: root/src/rustbook/help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rustbook/help.rs')
-rw-r--r--src/rustbook/help.rs2
1 files changed, 1 insertions, 1 deletions
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<Box<Subcommand>> {
     match name {
-        "help" | "--help" | "-h" | "-?" => Some(box Help as Box<Subcommand>),
+        "help" | "--help" | "-h" | "-?" => Some(Box::new(Help)),
         _ => None
     }
 }