summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakka <jakka@jakka.su>2025-10-08 14:49:46 +0300
committerjakka <jakka@jakka.su>2025-10-08 14:49:46 +0300
commit6924f47d1d216698501a65c0ff9bec5019d8e05e (patch)
treecfcf0dbab678b4ab6c725dddef0c9845bb5fae07
parentd9871c81dd945ea188d9d7a31993b7bb1735d257 (diff)
handled lints
-rw-r--r--src/files.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/files.rs b/src/files.rs
index 995e938..63c87fa 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -92,6 +92,7 @@ pub(crate) fn index_files_recursively(
let newhandler = handler.clone();
+ #[allow(unused_variables)]
s.spawn(move || {
for entry in WalkDir::new(&abspath) {
if newhandler.load(Ordering::SeqCst) {
@@ -118,6 +119,7 @@ pub(crate) fn index_files_recursively(
while let Ok(path) = filerecv.recv()
&& handler.load(Ordering::SeqCst)
{
+ #[allow(unused_variables)]
if let Err(error) = handle_file(&path, conn) {
#[cfg(not(test))]
bar.println(format!("{}", FileError::new(&path, error)));