Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 1, 2022
1 parent 2e9e556 commit c58a802
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/builder/action.rs
@@ -1,5 +1,3 @@
use crate::parser::AnyValueId;

/// Behavior of arguments when they are encountered while parsing
///
/// # Examples
Expand Down Expand Up @@ -225,7 +223,10 @@ impl ArgAction {
}
}

pub(crate) fn value_type_id(&self) -> Option<AnyValueId> {
#[cfg(debug_assertions)]
pub(crate) fn value_type_id(&self) -> Option<crate::parser::AnyValueId> {
use crate::parser::AnyValueId;

match self {
Self::StoreValue => None,
Self::IncOccurrence => None,
Expand Down
2 changes: 2 additions & 0 deletions tests/builder/action.rs
@@ -1,3 +1,5 @@
#![allow(clippy::bool_assert_comparison)]

use clap::builder::ArgAction;
use clap::Arg;
use clap::Command;
Expand Down

0 comments on commit c58a802

Please sign in to comment.