fix: remove warnings

This commit is contained in:
Timo Kösters 2022-04-07 13:22:10 +02:00
parent 2808dd2000
commit df4c38cb61
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
13 changed files with 14 additions and 68 deletions

View file

@ -18,7 +18,7 @@ use ruma::{
events::{
room::member::{MembershipState, RoomMemberEventContent},
room::message::RoomMessageEventContent,
GlobalAccountDataEventType, RoomAccountDataEventType, RoomEventType,
GlobalAccountDataEventType, RoomEventType,
},
push, UserId,
};

View file

@ -1,7 +1,7 @@
use crate::{database::DatabaseGuard, Error, Result, Ruma};
use ruma::{
api::client::{context::get_context, error::ErrorKind, filter::LazyLoadOptions},
events::{EventType, StateEventType},
events::StateEventType,
};
use std::{collections::HashSet, convert::TryFrom};
use tracing::error;

View file

@ -828,14 +828,6 @@ pub(crate) async fn invite_helper<'a>(
})
.transpose()?;
let create_prev_event = if prev_events.len() == 1
&& Some(&prev_events[0]) == create_event.as_ref().map(|c| &c.event_id)
{
create_event
} else {
None
};
// If there was no create event yet, assume we are creating a version 6 room right now
let room_version_id = create_event_content
.map_or(RoomVersionId::V6, |create_event| create_event.room_version);

View file

@ -8,9 +8,7 @@ use ruma::{
set_pushrule_enabled, RuleKind,
},
},
events::{
push_rules::PushRulesEvent, EventType, GlobalAccountDataEventType, RoomAccountDataEventType,
},
events::{push_rules::PushRulesEvent, GlobalAccountDataEventType},
push::{ConditionalPushRuleInit, PatternedPushRuleInit, SimplePushRuleInit},
};

View file

@ -13,7 +13,7 @@ use ruma::{
canonical_alias::RoomCanonicalAliasEventContent,
history_visibility::{HistoryVisibility, RoomHistoryVisibilityEventContent},
},
AnyStateEventContent, EventType, RoomEventType, StateEventType,
AnyStateEventContent, StateEventType,
},
serde::Raw,
EventId, RoomId, UserId,

View file

@ -7,7 +7,7 @@ use ruma::{
},
events::{
room::member::{MembershipState, RoomMemberEventContent},
EventType, RoomEventType, StateEventType,
RoomEventType, StateEventType,
},
serde::Raw,
DeviceId, RoomId, UserId,

View file

@ -3,7 +3,7 @@ use ruma::{
api::client::tag::{create_tag, delete_tag, get_tags},
events::{
tag::{TagEvent, TagEventContent},
EventType, RoomAccountDataEventType,
RoomAccountDataEventType,
},
};
use std::collections::BTreeMap;

View file

@ -7,7 +7,6 @@ use ruma::{
client::{error::ErrorKind, to_device::send_event_to_device},
federation::{self, transactions::edu::DirectDeviceContent},
},
events::EventType,
to_device::DeviceIdOrAllDevices,
};