Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Fix useless use of vec! compiler error
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Livesey <jlivesey@gmail.com>
  • Loading branch information
suchapalaver committed Oct 10, 2023
1 parent e15b942 commit b62668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion families/battleship/src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn get_battleship_name_hash(name: &str) -> String {

/// Get a state address for a given game of battleship
pub fn get_battleship_address(name: &str) -> String {
vec![get_battleship_prefix(), get_battleship_name_hash(name)].join("")
[get_battleship_prefix(), get_battleship_name_hash(name)].join("")
}

/// Hash the value and nonce for a revealed space
Expand Down

0 comments on commit b62668d

Please sign in to comment.