Skip to content

Commit

Permalink
fixes#3
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-bhatt committed Jan 4, 2021
1 parent f7e776d commit a6ec3d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/event/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ pub mod url {

impl fmt::Display for ParseError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.fmt(f)
if let ParseError::Error(v) = self {
Ok(())
}
else{
Err(fmt::Error{})
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ extern crate std;

extern crate serde;
extern crate serde_json;
extern crate serde_value;
extern crate snafu;

pub mod event;
Expand Down

0 comments on commit a6ec3d0

Please sign in to comment.