From 6bc512659fd301562a194e991e0e31429944173e Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 2 Apr 2022 21:28:24 +0200 Subject: update dependencies This also removes the direct import of ruma and instead imports matrix_sdk::ruma. This is simply to avoid mismatched versions, otherwise there might be errors popping up about missing traits. --- src/matrix.rs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/matrix.rs b/src/matrix.rs index ce31fe3..1ae79e7 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -12,16 +12,17 @@ use tokio::runtime::Runtime; use reqwest::Url; -use ruma::{ - api::client::r0::message::get_message_events, - events::room::message::{MessageEventContent, MessageType, Relation, Replacement}, - events::{AnyMessageEvent, AnyMessageEventContent, AnyRoomEvent}, - identifiers::{EventId, RoomId, UserId}, - MilliSecondsSinceUnixEpoch, UInt, +use matrix_sdk::{ + ruma::{ + api::client::r0::message::get_message_events, + events::room::message::{MessageEventContent, MessageType, Relation, Replacement}, + events::{AnyMessageEvent, AnyMessageEventContent, AnyRoomEvent}, + identifiers::{EventId, RoomId, UserId}, + MilliSecondsSinceUnixEpoch, UInt, + }, + Client }; -use matrix_sdk::Client; - #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct MatrixUser { pub homeserver: Url, -- cgit v1.2.3