web: the library checks for wasm32 (carried)
This commit is contained in:
1 parent
fe467d2bfe
commit
a03df0987c
44 files changed
+141
-104
No files matched your search
+5
-5
@@ -1,12 +1,10 @@
|
||||
use std::{
|
||||
collections::VecDeque,
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
use std::{collections::VecDeque, time::Duration};
|
||||
|
||||
use gpui::{
|
||||
App, Bounds, ElementId, FontWeight, InteractiveElement, IntoElement, ParentElement, RenderOnce,
|
||||
Styled, Window, canvas, div, fill, point, size,
|
||||
};
|
||||
use web_time::Instant;
|
||||
|
||||
use crate::{
|
||||
theme::{ActiveTheme, Radius, TextSize},
|
||||
@@ -183,7 +181,9 @@ impl RenderOnce for FpsMeter {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
|
||||
use web_time::Instant;
|
||||
|
||||
use super::{Frames, missed};
|
||||
|
||||
|
||||
Reference in new issue
Block a user