Skip to content

fix: unused variable warning in support_package.rs #382

@joshrotenberg

Description

@joshrotenberg

Issue

Windows build shows unused variable warning:

warning: unused variable: `metadata`
   --> crates\redisctl\src\commands\enterprise\support_package.rs:399:15
    |
399 |     if let Ok(metadata) = fs::metadata(parent_dir) {
    |               ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata`

Fix

Prefix with underscore if intentional:

if let Ok(_metadata) = fs::metadata(parent_dir) {

Or remove the binding entirely if not needed:

if fs::metadata(parent_dir).is_ok() {

Location

crates/redisctl/src/commands/enterprise/support_package.rs:399

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions