about summary refs log tree commit diff
path: root/src/display/color.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-28T02·16-0400
committerGriffin Smith <root@gws.fyi>2019-07-28T02·16-0400
commitf22bcad817ee354b355d29b6b289894e2d15cfaa (patch)
tree509aa3b88f834ffaccd6a90b61ae2c1e1567622d /src/display/color.rs
parent68e8ad8a0e6a5ac38b34658f03807ade603a687c (diff)
Add a generic text-prompt system
Add a generic text-prompt system to the Game, and use it to prompt the
character for their name on startup. There's also a Promise type in
util, which is used for the result of the prompt.
Diffstat (limited to 'src/display/color.rs')
-rw-r--r--src/display/color.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/display/color.rs b/src/display/color.rs
index 7d024a960d97..2a023f1d9564 100644
--- a/src/display/color.rs
+++ b/src/display/color.rs
@@ -92,7 +92,6 @@ impl<'de> Visitor<'de> for ColorVisitor {
                 Ok(Color(Box::new(color::LightYellow)))
             }
             "magenta" => Ok(Color(Box::new(color::Magenta))),
-            "magenta" => Ok(Color(Box::new(color::Magenta))),
             "red" => Ok(Color(Box::new(color::Red))),
             "white" => Ok(Color(Box::new(color::White))),
             "yellow" => Ok(Color(Box::new(color::Yellow))),