Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

LRC-LIB-FOLDERS: drop an unused import (#947 follow-up)

Claude44f86dc8551e
diff --git a/crates/engine/src/rename.rs b/crates/engine/src/rename.rs
index 199484e14..c5ff9a0c4 100644
--- a/crates/engine/src/rename.rs
+++ b/crates/engine/src/rename.rs
@@ -431,7 +431,6 @@ fn move_across_volumes(fs: &RealFs, a: &Path, b: &Path) -> std::io::Result<()> {
/// Whether files `a` and `b` hold the same bytes: lengths first, then 1 MiB chunks at a time, so
/// a large raw or video is never read into memory whole.
fn same_contents(a: &Path, b: &Path) -> std::io::Result<bool> {
- use std::io::Read;
const CHUNK: usize = 1 << 20;
let (mut fa, mut fb) = (std::fs::File::open(a)?, std::fs::File::open(b)?);
if fa.metadata()?.len() != fb.metadata()?.len() {