Skip to content

Commit

Permalink
Derive Eq as well
Browse files Browse the repository at this point in the history
This is from `clippy::derive_partial_eq_without_eq`. The lint has
known false positives and has been moved to the nursery on the nightly
compiler, though it seems okay in this case:

  rust-lang/rust-clippy#9530
  • Loading branch information
mgeisler committed Oct 23, 2022
1 parent 3c052a0 commit 3b38590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrap_algorithms/optimal_fit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::core::Fragment;
///
/// **Note:** Only available when the `smawk` Cargo feature is
/// enabled.
#[derive(Clone, Copy, Debug, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Penalties {
/// Per-line penalty. This is added for every line, which makes it
/// expensive to output more lines than the minimum required.
Expand Down

0 comments on commit 3b38590

Please sign in to comment.