drive-by compiler warning fixes

This commit is contained in:
Ken Sedgwick
2025-02-06 10:01:23 -08:00
parent fd030f5b5c
commit f0588a7f6b
2 changed files with 2 additions and 4 deletions

View File

@@ -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());

View File

@@ -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);