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

Commit 409703a

Browse files
committed
Fix formatting
Signed-off-by: Joseph Livesey <joseph.livesey@btp.works>
1 parent 2055292 commit 409703a

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

families/battleship/src/client.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use base64::{Engine as _, engine::general_purpose};
15+
use base64::{engine::general_purpose, Engine as _};
1616
use dirs::home_dir;
1717
use failure::Error;
1818
use game::{Action, Game};
@@ -208,9 +208,12 @@ impl<'a> BattleshipClient<'a> {
208208
.unwrap()
209209
.iter()
210210
.map(|json| {
211-
let entry: HashMap<String, Game> =
212-
from_slice(&general_purpose::STANDARD
213-
.decode(json["data"].as_str().unwrap()).unwrap()).unwrap();
211+
let entry: HashMap<String, Game> = from_slice(
212+
&general_purpose::STANDARD
213+
.decode(json["data"].as_str().unwrap())
214+
.unwrap(),
215+
)
216+
.unwrap();
214217
let key = entry.keys().next().unwrap();
215218
(key.clone(), entry[key].clone())
216219
})

0 commit comments

Comments
 (0)