diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-07-02 14:23:25 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-07-02 14:23:25 +0300 |
| commit | b1817bab4b276471344a025d378f5f4ff44e0f87 (patch) | |
| tree | 1307c6efa87c08aceeb62b6c396309ba55e8348b /src/files.rs | |
| parent | da6b4b75763ab5bf7746d09a34796fff3925cd3c (diff) | |
minor edit
Diffstat (limited to 'src/files.rs')
| -rw-r--r-- | src/files.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/files.rs b/src/files.rs index 601ea7c..797cad7 100644 --- a/src/files.rs +++ b/src/files.rs @@ -61,17 +61,17 @@ async fn handle_file(file: impl AsRef<Path>, conn: Database) -> Result<()> { let db_time = conn.get_modtime(&file).await?; if modtime != db_time { if let Err(error) = conn.update_file(&file).await { - return Err(anyhow!(FileError::new(file, error))); + return Err(FileError::new(file, error).into()); }; } return Ok(()); } - Err(error) => return Err(anyhow!(FileError::new(file, error))), + Err(error) => return Err(FileError::new(file, error).into()), _ => {} } if let Err(error) = conn.insert_file(&file).await { - return Err(anyhow!(FileError::new(file, error))); + return Err(FileError::new(file, error).into()); } Ok(()) |
