Skip to content

[Rust] Unused variable False positive #20256

@krishnakumar4a4

Description

@krishnakumar4a4

Description of the false positive

The argument is being used in the body of the function but flagged unused.

Code samples or links to source code

This is one specific example https://github.com/microsoft/windows-drivers-rs/blob/main/crates/cargo-wdk/src/providers/fs.rs#L29

URL to the alert on GitHub code scanning (optional)
https://github.com/microsoft/windows-drivers-rs/security/code-scanning/5

However, false positives for the arguments are generated for all the methods in this module and other sibling modules (exec, metadata and wdk_build).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions