about summary refs log tree commit diff
path: root/src/messages.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-07-07T17·02-0400
committerGriffin Smith <root@gws.fyi>2019-07-07T17·02-0400
commit20f1ccb4600b88ac01768e912e6d5837534ca852 (patch)
tree95a7c86ed32e524d4f8a70250c3f871600b79fc3 /src/messages.rs
parentc643ee1dfcb8d44b8cd198c768f31dd7659f2ff9 (diff)
add "Previous message" command
ctrl+p, like nethack. Cycles through messages, also like nethack.

May want to add some sort of indicator of how many messages there have
been.
Diffstat (limited to 'src/messages.rs')
-rw-r--r--src/messages.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/messages.rs b/src/messages.rs
index 2b9f098f98ca..03a96b4a0a64 100644
--- a/src/messages.rs
+++ b/src/messages.rs
@@ -175,7 +175,6 @@ lazy_static! {
 /// Look up a game message based on the given (dot-separated) name, with the
 /// given random generator used to select from choice-based messages
 pub fn message<R: Rng + ?Sized>(name: &str, rng: &mut R) -> &'static str {
-    use Message::*;
     MESSAGES
         .lookup(name)
         .and_then(|msg| msg.resolve(rng))