Skip to content

Commit

Permalink
replace std::time::Instant with bevy_utils::Instant
Browse files Browse the repository at this point in the history
Building for WASM fails because `std::time::Instant` doesn't implement `Reflect` and `TypePath`. Replacing it with `bevy_utils::Instant` fixes this.
  • Loading branch information
Toniman575 committed Mar 2, 2024
1 parent b8c9b0e commit afd883a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::{borrow::Cow, ops::AddAssign, path::PathBuf, time::Instant};
use std::{borrow::Cow, ops::AddAssign, path::PathBuf};

use bevy_reflect::{Reflect, TypePath};
use bevy_utils::Instant;
use egui::{DragValue, RichText, TextBuffer};

use super::{change_slider, iter_all_eq, InspectorPrimitive, InspectorUi};
Expand Down

0 comments on commit afd883a

Please sign in to comment.