clippy + fmt

This commit is contained in:
marin postma 2021-10-29 16:10:58 +02:00
parent d65f055030
commit 2665c0099d
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
11 changed files with 26 additions and 21 deletions

View file

@ -22,6 +22,7 @@ impl SearchAggregator {
}
impl MockAnalytics {
#[allow(clippy::new_ret_no_self)]
pub fn new(opt: &Opt) -> (Arc<dyn Analytics>, String) {
let user = find_user_id(&opt.db_path).unwrap_or_default();
(Arc::new(Self), user)