This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit 58cef2f62379d44224538e64af6ab6e290abee3a
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Thu Nov 19 16:02:00 2026 +0100

    MINIFICPP-2952 Fix clippy check issues
    
    Closes #2311
    
    Signed-off-by: Marton Szasz <[email protected]>
---
 .../extensions/minifi_rs_playground/src/processors/get_file.rs      | 6 +-----
 minifi_rust/minifi_native_sys/Cargo.toml                            | 2 ++
 minifi_rust/minifi_rs_behave/Cargo.toml                             | 3 ---
 minifi_rust/minifi_rs_behave/src/main.rs                            | 2 ++
 4 files changed, 5 insertions(+), 8 deletions(-)

diff --git 
a/minifi_rust/extensions/minifi_rs_playground/src/processors/get_file.rs 
b/minifi_rust/extensions/minifi_rs_playground/src/processors/get_file.rs
index bf5eac0fc..63e2decd0 100644
--- a/minifi_rust/extensions/minifi_rs_playground/src/processors/get_file.rs
+++ b/minifi_rust/extensions/minifi_rs_playground/src/processors/get_file.rs
@@ -153,11 +153,7 @@ impl GetFileRs {
                 .is_some_and(|f| f.starts_with('.'))
         }
 
-        if self.ignore_hidden_files && 
is_hidden(dir_entry.path().to_path_buf()) {
-            return Ok(false);
-        }
-
-        Ok(true)
+        Ok(!self.ignore_hidden_files || 
!is_hidden(dir_entry.path().to_path_buf()))
     }
 
     fn get_single_file<PS: ProcessSession, L: Logger>(
diff --git a/minifi_rust/minifi_native_sys/Cargo.toml 
b/minifi_rust/minifi_native_sys/Cargo.toml
index 58fa4120d..9b8b125f7 100644
--- a/minifi_rust/minifi_native_sys/Cargo.toml
+++ b/minifi_rust/minifi_native_sys/Cargo.toml
@@ -19,4 +19,6 @@ local-repo = []
 
 [build-dependencies]
 bindgen = "0.72.0"
+
+[target.'cfg(windows)'.build-dependencies]
 cc = "1.2.41"
diff --git a/minifi_rust/minifi_rs_behave/Cargo.toml 
b/minifi_rust/minifi_rs_behave/Cargo.toml
index c47ae9235..36a5844e4 100644
--- a/minifi_rust/minifi_rs_behave/Cargo.toml
+++ b/minifi_rust/minifi_rs_behave/Cargo.toml
@@ -10,6 +10,3 @@ edition = "2024"
 [dependencies]
 glob = "0.3.3"
 minifi_native_sys = { path = "../minifi_native_sys" }
-
-[lints.rust]
-unused_crate_dependencies = "allow"
diff --git a/minifi_rust/minifi_rs_behave/src/main.rs 
b/minifi_rust/minifi_rs_behave/src/main.rs
index dbd89b4d0..9cdb8dbe4 100644
--- a/minifi_rust/minifi_rs_behave/src/main.rs
+++ b/minifi_rust/minifi_rs_behave/src/main.rs
@@ -3,6 +3,8 @@
 // SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) 
under one or more contributor license agreements
 
 use glob::glob;
+// Only needed for its `links` metadata (DEP_MINIFI_BEHAVE_PATH in build.rs).
+use minifi_native_sys as _;
 use std::env;
 use std::path::{Path, PathBuf};
 use std::process::{Command, ExitStatus};

Reply via email to