From 7f562fe67efdc960fbc86a59207784efc1bbee1f Mon Sep 17 00:00:00 2001 From: torrybr <16907963+torrybr@users.noreply.github.com> Date: Mon, 8 Jul 2024 04:18:03 -0400 Subject: [PATCH] events: use web-time instead of std::time for BeaconInfoEventContent --- crates/ruma-events/Cargo.toml | 1 + crates/ruma-events/src/beacon_info.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruma-events/Cargo.toml b/crates/ruma-events/Cargo.toml index 18b6ae01..210e251b 100644 --- a/crates/ruma-events/Cargo.toml +++ b/crates/ruma-events/Cargo.toml @@ -76,6 +76,7 @@ serde_json = { workspace = true, features = ["raw_value"] } thiserror = { workspace = true } tracing = { workspace = true, features = ["attributes"] } url = { workspace = true } +web-time = { workspace = true } wildmatch = "2.0.0" # dev-dependencies can't be optional, so this is a regular dependency diff --git a/crates/ruma-events/src/beacon_info.rs b/crates/ruma-events/src/beacon_info.rs index 5c7a2947..87e8204f 100644 --- a/crates/ruma-events/src/beacon_info.rs +++ b/crates/ruma-events/src/beacon_info.rs @@ -3,11 +3,10 @@ //! //! [MSC3489]: https://github.com/matrix-org/matrix-spec-proposals/pull/3489 -use std::time::{Duration, SystemTime}; - use ruma_common::{MilliSecondsSinceUnixEpoch, OwnedUserId}; use ruma_macros::EventContent; use serde::{Deserialize, Serialize}; +use web_time::{Duration, SystemTime}; use crate::location::AssetContent;