Skip to content

Commit

Permalink
derive eq
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 3, 2023
1 parent 6a9cc02 commit 05ae0cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/nargo/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use noirc_frontend::graph::CrateName;

use crate::constants::{PROVER_INPUT_FILE, VERIFIER_INPUT_FILE};

#[derive(Debug, Copy, Clone)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum PackageType {
Library,
Binary,
Expand Down Expand Up @@ -61,10 +61,10 @@ impl Package {
}

pub fn is_binary(&self) -> bool {
matches!(self.package_type, PackageType::Binary)
self.package_type == PackageType::Binary
}

pub fn is_library(&self) -> bool {
matches!(self.package_type, PackageType::Library)
self.package_type == PackageType::Library
}
}

0 comments on commit 05ae0cb

Please sign in to comment.