web: the library checks for wasm32 (carried)

This commit is contained in:
ZacharyZhang-NY committed 2026-09-29 19:16:41 -04:00
1 parent fe467d2bfe
commit a03df0987c
44 files changed
+141 -104

No files matched your search

+5 -5
View File
@@ -1,11 +1,9 @@
use std::{
rc::Rc,
time::{Duration, Instant},
};
use std::{rc::Rc, time::Duration};
use gpui::{
App, ElementId, Entity, IntoElement, ParentElement, RenderOnce, Styled, Task, Window, div,
};
use web_time::Instant;
use crate::{
buttons::{Button, ButtonVariant, IconButton},
@@ -298,7 +296,9 @@ impl RenderOnce for PomodoroTimer {
#[cfg(test)]
mod tests {
use std::time::{Duration, Instant};
use std::time::Duration;
use web_time::Instant;
use super::{Cycle, Lengths, Phase};
+1 -1
View File
@@ -2,10 +2,10 @@ use gpui::{
AnyElement, Context, Entity, IntoElement, KeyBinding, KeyUpEvent, Keystroke, Modifiers,
ParentElement, Render, Styled, TestAppContext, VisualTestContext, Window, div, px,
};
use std::time::Instant;
use gpui::SharedString;
use jiff::civil::date;
use web_time::Instant;
use super::{AssigneePicker, IssueId, Person, Priority, Status, StatusSelect, Task, TaskList};
use crate::{documents::Checklist, forms::bind_keys, primitives::FocusNext, theme::Theme};
+2 -4
View File
@@ -1,12 +1,10 @@
use std::{
rc::Rc,
time::{Duration, Instant},
};
use std::{rc::Rc, time::Duration};
use gpui::{
App, ElementId, InteractiveElement, IntoElement, ParentElement, RenderOnce, SharedString,
Styled, Task, Window, div,
};
use web_time::Instant;
use crate::{
buttons::{Button, ButtonVariant},