From 75f7f063e16a94f4c9a314a80bc1a4780901d1a8 Mon Sep 17 00:00:00 2001 From: Joseph Livesey Date: Tue, 10 Oct 2023 11:52:16 -0400 Subject: [PATCH] Fix useless use of vec! compiler error Signed-off-by: Joseph Livesey --- families/battleship/src/game.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/families/battleship/src/game.rs b/families/battleship/src/game.rs index d7ef8a3d1f..3bd50d9f09 100644 --- a/families/battleship/src/game.rs +++ b/families/battleship/src/game.rs @@ -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