Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed May 6, 2024
1 parent c1538c0 commit b4e4184
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ use std::ops::Deref;
use std::str::FromStr;
use std::{error, fmt};

#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
#[derive(Debug, Default, Eq, PartialEq, Copy, Clone, Hash)]
/// Browser types available
pub enum Browser {
///Operating system's default browser
#[default]
Default,

///Mozilla Firefox
Expand Down Expand Up @@ -144,12 +145,6 @@ impl error::Error for ParseBrowserError {
}
}

impl std::default::Default for Browser {
fn default() -> Self {
Browser::Default
}
}

impl fmt::Display for Browser {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {
Expand Down

0 comments on commit b4e4184

Please sign in to comment.