commit f0588a7f6b1adf02c3f60b7877527fec301da7ac
parent fd030f5b5ce7d5c641b764741d22d3a89c16809d
Author: Ken Sedgwick <ken@bonsai.com>
Date: Thu, 6 Feb 2025 10:01:23 -0800
drive-by compiler warning fixes
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/crates/notedeck_chrome/src/notedeck.rs b/crates/notedeck_chrome/src/notedeck.rs
@@ -194,7 +194,7 @@ mod tests {
.timeline_id()
.unwrap();
- let timelines = app.timeline_cache.timelines.len() == 2;
+ assert_eq!(app.timeline_cache.timelines.len(), 2);
assert!(app.timeline_cache.timelines.get(&tl1).is_some());
assert!(app.timeline_cache.timelines.get(&tl2).is_some());
diff --git a/crates/notedeck_columns/src/timeline/route.rs b/crates/notedeck_columns/src/timeline/route.rs
@@ -141,7 +141,7 @@ pub fn render_profile_route(
#[cfg(test)]
mod tests {
use enostr::NoteId;
- use tokenator::{TokenParser, TokenSerializable, TokenWriter};
+ use tokenator::{TokenParser, TokenWriter};
use crate::timeline::{ThreadSelection, TimelineKind};
use enostr::Pubkey;
@@ -149,8 +149,6 @@ mod tests {
#[test]
fn test_timeline_route_serialize() {
- use super::TimelineKind;
-
let note_id_hex = "1c54e5b0c386425f7e017d9e068ddef8962eb2ce1bb08ed27e24b93411c12e60";
let note_id = NoteId::from_hex(note_id_hex).unwrap();
let data_str = format!("thread:{}", note_id_hex);