From 858f2c3bdd592c669ea4cbab293b61c1568a8b04 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 21 Oct 2026 00:35:15 -0400 Subject: [PATCH] solidcraft-smlib: the C types are imported only when SMLib is built The previous commit left c_char and c_void unused in the build without SMLib, which clippy -D warnings rejects. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QWhMwdqJYQKQq8RCLSL1LT --- crates/smlib/src/ffi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/smlib/src/ffi.rs b/crates/smlib/src/ffi.rs index 16fe98ab9..6cb72bfc0 100644 --- a/crates/smlib/src/ffi.rs +++ b/crates/smlib/src/ffi.rs @@ -3,6 +3,7 @@ //! root, which check their arguments and own the handles. #![allow(unsafe_code)] +#[cfg(feature = "native")] use std::ffi::{c_char, c_void}; /// `SMLIB_ABI_VERSION` this crate was written against.