chore: Make Clippy happy

This commit is contained in:
Henry-Hiles authored and Ellis Git committed 2026-11-08 19:34:25 +00:00
1 parent 15b4e8e2f9
commit 2e43797d95
2 files changed
+7 -6

No files matched your search

+4 -3
View File
@@ -98,6 +98,10 @@ pub(crate) async fn get_relating_events_route(
.await
}
// Spec (v1.10) recommends a depth of at least 3
const RECURSION_DEPTH: u8 = 3;
const LEVELS_BELOW: u8 = RECURSION_DEPTH - 1;
#[allow(clippy::too_many_arguments)]
async fn paginate_relations_with_filter(
services: &Services,
@@ -147,9 +151,6 @@ async fn paginate_relations_with_filter(
.unwrap_or(30)
.min(100);
// Spec (v1.10) recommends a depth of at least 3
const RECURSION_DEPTH: u8 = 3;
const LEVELS_BELOW: u8 = RECURSION_DEPTH - 1;
let max_depth = if recurse { LEVELS_BELOW } else { 0 };
// One more than the limit, to know whether there's another page
+3 -3
View File
@@ -53,13 +53,13 @@ impl Data {
self.tofrom_relation.aput_raw::<BUFSIZE, _, _>(key, []);
}
pub(super) fn get_relations<'a>(
&'a self,
pub(super) fn get_relations(
&self,
shortroomid: ShortRoomId,
target: u64,
from: PduCount,
dir: Direction,
) -> impl Stream<Item = (u64, PduEvent)> + Send + 'a {
) -> impl Stream<Item = (u64, PduEvent)> + Send + '_ {
let start_count = match from {
| PduCount::Normal(count) => count,
| PduCount::Backfilled(_) => 0,