Skip to content

Commit

Permalink
clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
stillonearth committed Nov 9, 2023
1 parent 6a69f90 commit 977f030
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion checkers-app/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ pub fn create_bevy_app(game: game::Game, game_mode: GameMode) -> App {

app.add_state::<AppState>();

return app;
app
}
2 changes: 1 addition & 1 deletion checkers-app/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn pass_turn_button_system(
selected_piece.entity = None;
game.state.turn.change();

if game_mode.clone() == GameMode::VsNetwork {
if *game_mode == GameMode::VsNetwork {
if *state.get() == AppState::Player1Turn {
next_state.set(AppState::Player2Turn);
}
Expand Down
4 changes: 2 additions & 2 deletions checkers-app/src/veilid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn on_veilid_initialized(
) {
for _ in er_world_initialized.iter() {
for (mut text, _tag) in text_query.iter_mut() {
let str = format!("Veilid Initialized");
let str = "Veilid Initialized".to_string();
text.sections[0].value = str;
}

Expand Down Expand Up @@ -303,7 +303,7 @@ fn paste_dht_key_button_system(
let dht_key = bevy_veilid::veilid_duplex::utils::crypto_key_from_str(dht_key);
if dht_key.is_err() {
for (mut text, _tag) in text_query.iter_mut() {
let str = format!("Bad DHT Key in clipboard, try again");
let str = "Bad DHT Key in clipboard, try again".to_string();
text.sections[0].value = str;
}
return;
Expand Down

0 comments on commit 977f030

Please sign in to comment.