commit 5010d3662dec4fcbf16d84387dead6ce8f752faa
parent a0ac4b16ad3bbebc5ddfc5ef9ad3ed28e606941b
Author: William Casarin <jb55@jb55.com>
Date: Tue, 24 Jun 2025 13:39:45 -0700
thread: move comment to the correct place
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/crates/notedeck_columns/src/timeline/kind.rs b/crates/notedeck_columns/src/timeline/kind.rs
@@ -124,11 +124,6 @@ impl ListKind {
}
}
-/// Thread selection hashing is done in a specific way. For TimelineCache
-/// lookups, we want to only let the root_id influence thread selection.
-/// This way Thread TimelineKinds always map to the same cached timeline
-/// for now (we will likely have to rework this since threads aren't
-/// *really* timelines)
#[derive(Debug, Clone)]
pub struct ThreadSelection {
pub root_id: RootNoteIdBuf,
@@ -171,6 +166,11 @@ impl ThreadSelection {
}
}
+/// Thread selection hashing is done in a specific way. For TimelineCache
+/// lookups, we want to only let the root_id influence thread selection.
+/// This way Thread TimelineKinds always map to the same cached timeline
+/// for now (we will likely have to rework this since threads aren't
+/// *really* timelines)
impl Hash for ThreadSelection {
fn hash<H: Hasher>(&self, state: &mut H) {
// only hash the root id for thread selection