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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user