Run cargo fmt/fix
This commit is contained in:
10
src/main.rs
10
src/main.rs
@@ -175,11 +175,10 @@ async fn get_file_metadata(
|
||||
let mut response: MetadataResponse = metadata.into();
|
||||
|
||||
// Query EXIF data if available
|
||||
if let Ok(mut dao) = exif_dao.lock() {
|
||||
if let Ok(Some(exif)) = dao.get_exif(&path.path) {
|
||||
if let Ok(mut dao) = exif_dao.lock()
|
||||
&& let Ok(Some(exif)) = dao.get_exif(&path.path) {
|
||||
response.exif = Some(exif.into());
|
||||
}
|
||||
}
|
||||
|
||||
span.add_event(
|
||||
"Metadata fetched",
|
||||
@@ -903,11 +902,10 @@ fn process_new_files(
|
||||
.filter(|entry| {
|
||||
// Filter by modification time if specified
|
||||
if let Some(since) = modified_since {
|
||||
if let Ok(metadata) = entry.metadata() {
|
||||
if let Ok(modified) = metadata.modified() {
|
||||
if let Ok(metadata) = entry.metadata()
|
||||
&& let Ok(modified) = metadata.modified() {
|
||||
return modified >= since;
|
||||
}
|
||||
}
|
||||
// If we can't get metadata, include the file to be safe
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user