Skip to content

Commit

Permalink
chore(deps): update dependencies & fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pbellchambers committed Jan 15, 2025
1 parent 5c650af commit 65b1f89
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 48 deletions.
86 changes: 45 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ crossbeam-channel = "0.5.14"
crossterm = { version = "0.26.1", features = ["serde"] }
laminar = "0.5.0"
legion = "0.4.0"
log = "0.4.22"
message-io = { version = "0.18.2", default-features = false, features = ["tcp"] }
log = "0.4.25"
message-io = { version = "0.18.3", default-features = false, features = ["tcp"] }
ndarray = { version = "0.16.1", features = ["rayon", "serde"] }
rand = "0.8.5"
rayon = "1.10.0"
regex = "1.11.1"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.134"
serde_json = "1.0.135"
simplelog = "0.12.2"
strum_macros = "0.26.4"
uuid = { version = "1.11.0", features = ["serde", "v4"] }
uuid = { version = "1.12.0", features = ["serde", "v4"] }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Currently, the following functionality is defined entirely by text or json files
- **spawns** - *.json* - Spawn locations of monsters. There should be one spawn file per map.

## Building from source
1. Install latest version of [rust](https://www.rust-lang.org/) (most recently confirmed working `1.83.0`)
1. Install latest version of [rust](https://www.rust-lang.org/) (most recently confirmed working `1.84.0`)
2. Download this repository
3. Run `cargo build` in the repository root directory
4. Copy `assets` directory into `target/debug` directory
Expand Down
4 changes: 2 additions & 2 deletions rustyhack_client/src/client_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ fn get_server_tcp_addr() -> String {

fn get_player_name() -> String {
let mut player_name;
let valid_name_regex = Regex::new(VALID_NAME_REGEX).expect("Player name regex is invalid.");
loop {
player_name = String::new();
println!("3) What is your character name?");
Expand All @@ -140,8 +141,7 @@ fn get_player_name() -> String {
}

//must only contain letters
let regex = Regex::new(VALID_NAME_REGEX).expect("Player name regex is invalid.");
if !regex.is_match(&parsed_player_name) {
if !valid_name_regex.is_match(&parsed_player_name) {
println!("Character name must only contain letters.");
println!();
continue;
Expand Down

0 comments on commit 65b1f89

Please sign in to comment.