Skip to content

Commit

Permalink
Implement 'Eq' on 'SliceOptions'.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Dec 12, 2023
1 parent c24c6c4 commit 1b728b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slice_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use clap::{Parser, ValueEnum};

/// This struct is responsible for parsing the command line options common to all slice compilers.
/// The option parsing capabilities are generated on the struct by the `clap` macro.
#[derive(Debug, Default, Hash, Parser)]
#[derive(Debug, Default, PartialEq, Eq, Hash, Parser)]
#[command(rename_all = "kebab-case")]
pub struct SliceOptions {
/// List of Slice files to compile.
Expand Down Expand Up @@ -47,7 +47,7 @@ pub struct SliceOptions {
}

/// This enum is used to specify the format for emitted diagnostics.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq, ValueEnum)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash, ValueEnum)]
pub enum DiagnosticFormat {
/// Diagnostics are printed to the console in an easily readable format with source code snippets when possible.
#[default]
Expand Down

0 comments on commit 1b728b4

Please sign in to comment.