chore: clippy fix

This commit is contained in:
2024-10-18 13:11:21 +01:00
parent b4a6991007
commit e6b606e8fb
18 changed files with 47 additions and 72 deletions

View File

@ -40,7 +40,7 @@ impl<'a> Avatar<'a> {
pub fn pubkey(pk: &[u8; 32], svc: &'a RouteServices<'a>) -> Self {
let (p, sub) = svc.ndb.fetch_profile(svc.tx, pk);
Self {
image: p.and_then(|p| p.picture().and_then(|p| Some(svc.img_cache.load(p)))),
image: p.and_then(|p| p.picture().map(|p| svc.img_cache.load(p))),
sub,
size: None,
}