Skip to content

Commit 5010d36

Browse files
committed
thread: move comment to the correct place
Signed-off-by: William Casarin <jb55@jb55.com>
1 parent a0ac4b1 commit 5010d36

File tree

1 file changed

+5
-5
lines changed
  • crates/notedeck_columns/src/timeline

1 file changed

+5
-5
lines changed

crates/notedeck_columns/src/timeline/kind.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,6 @@ impl ListKind {
124124
}
125125
}
126126

127-
/// Thread selection hashing is done in a specific way. For TimelineCache
128-
/// lookups, we want to only let the root_id influence thread selection.
129-
/// This way Thread TimelineKinds always map to the same cached timeline
130-
/// for now (we will likely have to rework this since threads aren't
131-
/// *really* timelines)
132127
#[derive(Debug, Clone)]
133128
pub struct ThreadSelection {
134129
pub root_id: RootNoteIdBuf,
@@ -171,6 +166,11 @@ impl ThreadSelection {
171166
}
172167
}
173168

169+
/// Thread selection hashing is done in a specific way. For TimelineCache
170+
/// lookups, we want to only let the root_id influence thread selection.
171+
/// This way Thread TimelineKinds always map to the same cached timeline
172+
/// for now (we will likely have to rework this since threads aren't
173+
/// *really* timelines)
174174
impl Hash for ThreadSelection {
175175
fn hash<H: Hasher>(&self, state: &mut H) {
176176
// only hash the root id for thread selection

0 commit comments

Comments
 (0)