Fix unused lifetims.

Fix unused pub(crate).

Allow implicit hasher.

Fix unused self.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-08-30 10:51:19 +00:00
parent 91efcf8a8e
commit 616f20f273
7 changed files with 17 additions and 20 deletions

View File

@@ -455,7 +455,7 @@ where
/// Check whether the given event passes the `m.room.power_levels` authorization
/// rules.
#[tracing::instrument(level = "trace", skip_all)]
fn check_room_power_levels<'a, Creators, Pdu>(
fn check_room_power_levels<Creators, Pdu>(
room_power_levels_event: &RoomPowerLevelsEvent<Pdu>,
current_room_power_levels_event: Option<&RoomPowerLevelsEvent<Pdu>>,
rules: &AuthorizationRules,

View File

@@ -67,7 +67,7 @@ type ConflictVec = Vec<OwnedEventId>;
///
/// [state resolution]: https://spec.matrix.org/latest/rooms/v2/#state-resolution
#[tracing::instrument(level = "debug", skip_all)]
pub async fn resolve<'a, States, AuthSets, FetchExists, ExistsFut, FetchEvent, EventFut, Pdu>(
pub async fn resolve<States, AuthSets, FetchExists, ExistsFut, FetchEvent, EventFut, Pdu>(
rules: &RoomVersionRules,
state_maps: States,
auth_sets: AuthSets,

View File

@@ -75,6 +75,7 @@ impl PartialOrd for TieBreaker<'_> {
graph = graph.len(),
)
)]
#[allow(clippy::implicit_hasher)]
pub async fn topological_sort<Query, Fut>(
graph: &HashMap<OwnedEventId, HashSet<OwnedEventId>>,
query: &Query,