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

@ -1,11 +1,9 @@
use egui::Image;
use log::{error, info};
use nostr_sdk::util::hex;
use sha2::digest::Update;
use sha2::{Digest, Sha256};
use std::collections::HashSet;
use std::fs;
use std::hash::Hash;
use std::path::PathBuf;
use std::sync::Arc;
use tokio::sync::Mutex;
@ -45,7 +43,7 @@ impl ImageCache {
{
let u = url.into();
let path = self.find(&u);
if !path.exists() && u.len() > 0 {
if !path.exists() && !u.is_empty() {
let path = path.clone();
let fl = self.fetch_lock.clone();
let ctx = self.ctx.clone();