diff --git a/gossip-bin/src/ui/feed/post.rs b/gossip-bin/src/ui/feed/post.rs index f798a07c..1ff801bf 100644 --- a/gossip-bin/src/ui/feed/post.rs +++ b/gossip-bin/src/ui/feed/post.rs @@ -69,7 +69,7 @@ pub fn textarea_highlighter(theme: Theme, text: String, interests: Vec) } // sort by position (so our indice access below will not crash) - found_interests.sort_by(|a,b| { a.0.cmp(&b.0) }); + found_interests.sort_by(|a, b| a.0.cmp(&b.0)); let mut pos = 0; // loop all found interests in order @@ -82,7 +82,7 @@ pub fn textarea_highlighter(theme: Theme, text: String, interests: Vec) ); // update pos - pos = ipos+interest.len(); + pos = ipos + interest.len(); // output the interest job.append( diff --git a/gossip-lib/src/storage/migrations/m17.rs b/gossip-lib/src/storage/migrations/m17.rs index 02c89df3..ba248a8e 100644 --- a/gossip-lib/src/storage/migrations/m17.rs +++ b/gossip-lib/src/storage/migrations/m17.rs @@ -1,4 +1,3 @@ - use crate::error::Error; use crate::storage::Storage; use heed::RwTxn;