Skip to content

Commit

Permalink
sunny removes the unused import warningand fixes the nonexistant syst…
Browse files Browse the repository at this point in the history
…em error instead of white space
  • Loading branch information
l1npengtul committed Dec 28, 2022
1 parent 08b5295 commit 7fc4b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_diagnostic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ mod log_diagnostics_plugin;
mod system_information_diagnostics_plugin;

use bevy_app::prelude::*;
use bevy_log::info;
pub use diagnostic::*;
pub use entity_count_diagnostics_plugin::EntityCountDiagnosticsPlugin;
pub use frame_time_diagnostics_plugin::FrameTimeDiagnosticsPlugin;
Expand Down Expand Up @@ -52,6 +51,7 @@ fn log_system_info() {
not(feature = "bevy_dynamic_plugin")
))]
{
use bevy_log::info;
use sysinfo::{CpuExt, SystemExt};

let mut sys = sysinfo::System::new();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ mod internal {

impl Plugin for SystemInformationDiagnosticsPlugin {
fn build(&self, app: &mut App) {
app.add_startup_system(Self::setup_system)
.add_system(Self::diagnostic_system);
app.add_startup_system(Self::setup_system);
}
}

Expand Down

0 comments on commit 7fc4b25

Please sign in to comment.