mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
cargo fmt
This commit is contained in:
parent
6a4184387b
commit
6f86208bba
@ -69,7 +69,7 @@ pub fn textarea_highlighter(theme: Theme, text: String, interests: Vec<String>)
|
||||
}
|
||||
|
||||
// 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<String>)
|
||||
);
|
||||
|
||||
// update pos
|
||||
pos = ipos+interest.len();
|
||||
pos = ipos + interest.len();
|
||||
|
||||
// output the interest
|
||||
job.append(
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
use crate::error::Error;
|
||||
use crate::storage::Storage;
|
||||
use heed::RwTxn;
|
||||
|
Loading…
Reference in New Issue
Block a user