Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2462780

Browse files
committedOct 10, 2023
Fix useless use of vec! compiler error
1 parent 5659d5f commit 2462780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎families/battleship/src/game.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn get_battleship_name_hash(name: &str) -> String {
4141

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

4747
/// Hash the value and nonce for a revealed space

0 commit comments

Comments
 (0)
This repository has been archived.