Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyHappening committed Jul 8, 2023
1 parent 503c4c2 commit 2f5aaf3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use crate::solver::algs::*;
use crate::solver::pieces::StandardKnight;
use crate::solver::{pieces::ChessPiece, BoardOptions, ChessPoint};
use bevy::ecs::event::ManualEventIterator;

use bevy::prelude::*;
use bevy_mod_picking::prelude::*;
use std::f32::consts::TAU;
Expand Down Expand Up @@ -299,7 +299,7 @@ mod compute {
alg: Algorithm,
piece: &P,
options: Options,
commands: &mut Commands,
_commands: &mut Commands,
) {
let state = options.clone();
if let Some(start) = options.selected_start {
Expand Down Expand Up @@ -438,7 +438,7 @@ mod cached_info {
mut computations: EventReader<ComputationResult>,
mut commands: Commands,

markers: Query<Entity, (With<MarkerMarker>, With<ChessPoint>)>,
_markers: Query<Entity, (With<MarkerMarker>, With<ChessPoint>)>,
mut mma: ResSpawning,
) {
// if !computations.is_empty() {
Expand Down Expand Up @@ -474,13 +474,13 @@ mod ui {
use strum::IntoEnumIterator;

pub fn left_sidebar_ui(
commands: Commands,
_commands: Commands,
mut contexts: EguiContexts,

mut cam: Query<&mut Transform, With<MainCamera>>,
mut next_state: ResMut<NextState<ProgramState>>,
state: Res<State<ProgramState>>,
mut current_level: ResMut<ManualFreedom>,
current_level: ResMut<ManualFreedom>,

options: ResMut<CurrentOptions>,
mut new_board_event: EventWriter<NewOptions>,
Expand Down Expand Up @@ -599,7 +599,7 @@ mod ui {
options: Res<CurrentOptions>,
computation: Option<Res<ComputationResult>>,

mut commands: Commands,
_commands: Commands,
mut contexts: EguiContexts,
) {
let options = &options.current;
Expand Down Expand Up @@ -643,7 +643,7 @@ mod ui {
}

if let Some(start) = &options.selected_start {
let alg_selected: &str = options.selected_algorithm.clone().into();
let alg_selected: &str = options.selected_algorithm.into();
ui.label(format!(
"Current info: Starting at {start} with {} algorithm {}",
alg_selected,
Expand Down
6 changes: 3 additions & 3 deletions src/board/visualization.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::{
compute::{begin_background_compute, ComputationResult},
compute::{ComputationResult},
*,
};
use crate::solver::{algs::Computation, pieces::StandardKnight, Move, Moves};
use crate::solver::{algs::Computation, Move, Moves};

#[derive(Component, Debug, Clone)]
pub struct VisualizationComponent {
Expand All @@ -16,7 +16,7 @@ pub fn handle_spawning_visualization(
mut solutions: EventReader<ComputationResult>,
current_options: Res<CurrentOptions>,

viz: Query<Entity, With<VisualizationComponent>>,
_viz: Query<Entity, With<VisualizationComponent>>,

mut mma: ResSpawning,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/solver/algs/hamiltonian.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use itertools::Itertools;
use std::{
collections::{HashMap, HashSet},
};
use tracing::{debug, info, trace};
use tracing::{debug, trace};

use crate::{
solver::{pieces::ChessPiece, BoardOptions, Move, Moves},
Expand Down

0 comments on commit 2f5aaf3

Please sign in to comment.