Skip to content

Commit

Permalink
Removal of redundant imports and field definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
MichlF committed May 25, 2023
1 parent 23563ef commit 676e416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
)]

extern crate machine_uid;
use tauri_plugin_single_instance;
use tauri_plugin_fs_watch;
use std::path::Path;
use tauri::Manager;
use window_shadows::set_shadow;
Expand Down
13 changes: 6 additions & 7 deletions src-tauri/src/parse_log_file.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use serde::{Deserialize, Serialize};
use nom;
use std::io::BufReader;
use std::io::BufRead;
use std::fs::File;
use log::{info};
use log::info;

#[derive(Serialize, Deserialize, Clone)]
pub enum GameState {
Expand Down Expand Up @@ -252,9 +251,9 @@ pub fn parse_log_file_reverse(path: String) -> LogFileData {
win_condition,
left: left_team,
right: right_team,
player_name: player_name,
player_steam_id: player_steam_id,
language_code: language_code
player_name,
player_steam_id,
language_code
}
}

Expand Down Expand Up @@ -313,9 +312,9 @@ fn get_team_data(players: Vec<PlayerData>) -> TeamData {
}
}
if mixed {
return TeamData { players: players, side: TeamSide::Mixed }
return TeamData { players, side: TeamSide::Mixed }
}
TeamData { players: players, side: last }
TeamData { players, side: last }
}

// look for blocks like this:
Expand Down

0 comments on commit 676e416

Please sign in to comment.