Project

General

Profile

Actions

Bug #6883

closed

rust: clippy 1.77 warning

Added by Philippe Antoine about 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Like https://github.com/OISF/suricata/actions/runs/8376793233/job/22937284484?pr=10689

Run cargo clippy --all-features --all-targets
   Compiling suricata-derive v8.0.0-dev (/__w/suricata/suricata/rust/derive)
    Checking suricata v8.0.0-dev (/__w/suricata/suricata/rust)
error: field `0` is never read
  --> src/asn1/mod.rs:36:14
   |
36 |     BerError(Err<der_parser::error::BerError>),
   |     -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |     |
   |     field in this variant
   |
note: the lint level is defined here
  --> src/lib.rs:23:38
   |
23 | #![cfg_attr(feature = "strict", deny(warnings))]
   |                                      ^^^^^^^^
   = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
36 |     BerError(()),
   |              ~~


Subtasks 1 (0 open1 closed)

Bug #6884: rust: clippy 1.77 warning (7.0.x backport)ClosedPhilippe AntoineActions
Actions #1

Updated by OISF Ticketbot about 2 months ago

  • Subtask #6884 added
Actions #2

Updated by OISF Ticketbot about 2 months ago

  • Label deleted (Needs backport to 7.0)
Actions #3

Updated by Philippe Antoine about 2 months ago

  • Status changed from New to In Review
Actions #4

Updated by Philippe Antoine about 2 months ago

  • Status changed from In Review to Resolved
Actions #5

Updated by Philippe Antoine about 1 month ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF