From 0fc8845047c8a440d35e1539c731a8e1f3b14544 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 15 Nov 2020 23:11:48 +0000 Subject: [PATCH] minor tidying Signed-off-by: Ian Jackson --- src/bin/otter.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index f6794628..61e3de0c 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -222,7 +222,9 @@ fn main() { "show game access url by printing to stdout"); access.metavar("TOKEN").add_option( &["--fixed-token"], - MapStore(|s| Ok(Some(AccessOpt(Box::new(FixedToken { token: RawToken (s.to_string()) }))))), + MapStore(|s| Ok(Some( + FixedToken { token: RawToken(s.to_string()) }.into() + ))), "use fixed game access token TOKEN (for administrators only)r" ); -- 2.30.2