clippy: allow len_without_is_empty

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-10-06 10:43:39 +02:00
parent bdfb6f5fb5
commit ea3542b30e
5 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,7 @@ impl Default for Input {
}
}
#[allow(clippy::len_without_is_empty)]
impl Input {
pub fn new() -> Self {
Self::default()

View File

@ -23,6 +23,7 @@ pub struct MainInput {
input: HashMap<String, Option<InputValue>>,
}
#[allow(clippy::len_without_is_empty)]
impl MainInput {
pub fn new() -> Self {
Self::default()

View File

@ -26,6 +26,7 @@ pub struct ProgramInput {
registers: Registers,
}
#[allow(clippy::len_without_is_empty)]
impl ProgramInput {
pub fn new() -> Self {
Self::default()

View File

@ -26,6 +26,7 @@ pub struct PrivateState {
state_leaf: StateLeaf,
}
#[allow(clippy::len_without_is_empty)]
impl PrivateState {
pub fn new() -> Self {
Self::default()

View File

@ -26,6 +26,7 @@ pub struct ProgramState {
private: PrivateState,
}
#[allow(clippy::len_without_is_empty)]
impl ProgramState {
pub fn new() -> Self {
Self::default()