Skip to content

Commit

Permalink
Formatting fixes and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedible committed Jun 29, 2023
1 parent 866958b commit 1b38ee0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{Diagnostic, DiagnosticId, Diagnostics, RegisterDiagnostic};
use bevy_app::prelude::*;
use bevy_core::FrameCount;
use bevy_ecs::prelude::*;
use bevy_time::{Time, Real};
use bevy_time::{Real, Time};

/// Adds "frame time" diagnostic to an App, specifically "frame time", "fps" and "frame count"
#[derive(Default)]
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_diagnostic/src/log_diagnostics_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::{Diagnostic, DiagnosticId, DiagnosticsStore};
use bevy_app::prelude::*;
use bevy_ecs::prelude::*;
use bevy_log::{debug, info};
use bevy_time::{Time, Timer, TimerMode, Real};
use bevy_time::{Real, Time, Timer, TimerMode};
use bevy_utils::Duration;

/// An App Plugin that logs diagnostics to the console
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_render/src/globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fn extract_frame_count(mut commands: Commands, frame_count: Extract<Res<FrameCou
}

fn extract_time(mut commands: Commands, time: Extract<Res<Time>>) {
commands.insert_resource(time.clone());
commands.insert_resource(**time);
}

/// Contains global values useful when writing shaders.
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_time/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ impl<T: Default> Time<T> {
elapsed >= self.elapsed,
"tried to move time backwards to an earlier elapsed moment"
);
self.advance_by(elapsed - self.elapsed)
self.advance_by(elapsed - self.elapsed);
}

/// Returns the modulus used to calculate [`elapsed_wrapped`](#method.elapsed_wrapped).
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_time/src/virt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl Time<Virtual> {
/// Panics if `ratio` is negative or not finite.
#[inline]
pub fn set_relative_speed(&mut self, ratio: f32) {
self.set_relative_speed_f64(ratio as f64)
self.set_relative_speed_f64(ratio as f64);
}

/// Sets the speed the clock advances relative to your system clock, given as an [`f64`].
Expand Down

0 comments on commit 1b38ee0

Please sign in to comment.