diff --git a/bevy_replicon_example_backend/examples/simple_box.rs b/bevy_replicon_example_backend/examples/simple_box.rs index 14ff4c68..909ff9fe 100644 --- a/bevy_replicon_example_backend/examples/simple_box.rs +++ b/bevy_replicon_example_backend/examples/simple_box.rs @@ -1,10 +1,7 @@ //! A simple demo to showcase how player could send inputs to move a box and server replicates position back. //! Also demonstrates the single-player and how sever also could be a player. -use std::{ - hash::{DefaultHasher, Hash, Hasher}, - io, -}; +use std::hash::{DefaultHasher, Hash, Hasher}; use bevy::{ color::palettes::css::GREEN, @@ -48,7 +45,7 @@ impl Plugin for SimpleBoxPlugin { } } -fn read_cli(mut commands: Commands, cli: Res) -> io::Result<()> { +fn read_cli(mut commands: Commands, cli: Res) -> Result<()> { match *cli { Cli::SinglePlayer => { info!("starting single-player game"); diff --git a/bevy_replicon_example_backend/examples/tic_tac_toe.rs b/bevy_replicon_example_backend/examples/tic_tac_toe.rs index a484451a..4e1764fc 100644 --- a/bevy_replicon_example_backend/examples/tic_tac_toe.rs +++ b/bevy_replicon_example_backend/examples/tic_tac_toe.rs @@ -1,10 +1,7 @@ //! A game to showcase single-player and multiplier game. //! Run it with `cargo run --example tic_tac_toe -- hotseat` to play locally or with `-- client` / `-- server` -use std::{ - fmt::{self, Formatter}, - io, -}; +use std::fmt::{self, Formatter}; use bevy::{platform::collections::HashMap, prelude::*}; use bevy_replicon::prelude::*; @@ -93,7 +90,7 @@ const LINE_THICKNESS: f32 = 10.0; const BUTTON_SIZE: f32 = CELL_SIZE / 1.2; const BUTTON_MARGIN: f32 = (CELL_SIZE + LINE_THICKNESS - BUTTON_SIZE) / 2.0; -fn read_cli(mut commands: Commands, cli: Res) -> io::Result<()> { +fn read_cli(mut commands: Commands, cli: Res) -> Result<()> { match *cli { Cli::Hotseat => { info!("starting hotseat");