cargo fmt

This commit is contained in:
Mike Dilger 2023-11-23 16:17:36 +13:00
parent 6a4184387b
commit 6f86208bba
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -1,4 +1,3 @@
use crate::error::Error;
use crate::storage::Storage;
use heed::RwTxn;