Skip to content

Commit

Permalink
Add traits PartialEq and Eq to EventListenerOptions, and EventListene…
Browse files Browse the repository at this point in the history
…rPhase
  • Loading branch information
Philipp-M committed Aug 6, 2023
1 parent f5f963a commit 7a74821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/events/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use web_sys::{AddEventListenerOptions, Event, EventTarget};
/// EventListenerPhase::Bubble
/// # ;
/// ```
#[derive(Default, Debug, Clone, Copy)]
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq)]
pub enum EventListenerPhase {
#[default]
#[allow(missing_docs)]
Expand Down Expand Up @@ -91,7 +91,7 @@ impl EventListenerPhase {
/// passive: false,
/// };
/// ```
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct EventListenerOptions {
/// The phase that the event listener should be run in.
pub phase: EventListenerPhase,
Expand Down

0 comments on commit 7a74821

Please sign in to comment.