chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b81793c
)
minor tidying
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 Nov 2020 23:11:48 +0000
(23:11 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 15 Nov 2020 23:11:48 +0000
(23:11 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/otter.rs
patch
|
blob
|
history
diff --git
a/src/bin/otter.rs
b/src/bin/otter.rs
index f67946289624c385f383adb2bcfa1c26658407a3..61e3de0c2086c732002ed596e734bfc793a820ef 100644
(file)
--- 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"
);