diff options
author | nokoe <nokoe@mailbox.org> | 2024-07-23 14:02:35 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2024-07-23 14:02:35 +0200 |
commit | ace81d7e1aa42738583d80028bcce058579e2ee6 (patch) | |
tree | c6653a77c5d064736bb482b9932151544d8a1c2d /server/src/state.rs | |
parent | ff1821306194e9f84404aa0dc8597c98097b1dc8 (diff) | |
download | hurrycurry-ace81d7e1aa42738583d80028bcce058579e2ee6.tar hurrycurry-ace81d7e1aa42738583d80028bcce058579e2ee6.tar.bz2 hurrycurry-ace81d7e1aa42738583d80028bcce058579e2ee6.tar.zst |
delete deprecated demands
Diffstat (limited to 'server/src/state.rs')
-rw-r--r-- | server/src/state.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/src/state.rs b/server/src/state.rs index 44b4078a..11c45933 100644 --- a/server/src/state.rs +++ b/server/src/state.rs @@ -44,7 +44,7 @@ enum Command { }, /// Abort the current game End, - /// Download recipe/demand/map's source declaration + /// Download recipe/map's source declaration Download { /// Resource kind #[arg(value_enum)] @@ -52,7 +52,7 @@ enum Command { /// Name name: String, }, - /// List all recipes, demands and maps + /// List all recipes and maps List, /// Send an effect Effect { name: String }, @@ -69,7 +69,6 @@ enum Command { enum DownloadType { Map, Recipes, - Demand, } impl State { @@ -202,15 +201,13 @@ impl State { let source = match r#type { DownloadType::Map => self.index.read_map(&name).await, DownloadType::Recipes => self.index.read_recipes(&name).await, - DownloadType::Demand => self.index.read_demands(&name).await, }?; bail!("{source}"); } Command::List => { bail!( - "Maps: {:?}\nDemands: {:?}\nRecipes: {:?}", + "Maps: {:?}\nRecipes: {:?}", self.index.maps.keys().collect::<Vec<_>>(), - self.index.demands, self.index.recipes ) } |