Skip to content

fix: trios-training-ffi unused imports + missing ffi feature gate #116

Description

@gHashTag

Problem

  1. Unused imports: c_char, size_t
  2. c_void used in extern block but not imported
  3. #[cfg(feature = "ffi")] used but feature not declared in Cargo.toml

Fix Applied (uncommitted)

  • Removed unused imports
  • Added conditional c_void import
  • Added [features] ffi = [] to Cargo.toml

Verification

cargo clippy -p trios-training-ffi -- -D warnings  # PASS

Diagnosed by trios-doctor (leukocyte agent)

Activity

  1. gHashTag commented on Apr 20, 2026

    @gHashTag
    OwnerAuthor

    Fix pushed in commit 2eb5911

    Changes:

    • Removed unused c_char, size_t imports
    • Added #[cfg(feature = "ffi")] use libc::c_void
    • Added [features] ffi = [] to Cargo.toml
    • Fixed extern "C" signatures: size_t → usize

    Verification:

    cargo clippy -p trios-training-ffi -- -D warnings  # PASS
    
  2. gHashTag commented on Apr 20, 2026

    @gHashTag
    OwnerAuthor

    Fixed by #120 (merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions