Skip to content

Commit aa7cfb1

Browse files
committed
fixes#3
Signed-off-by: [email protected] <[email protected]>
1 parent 0fd3024 commit aa7cfb1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/event/mod.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ pub mod url {
7070

7171
impl fmt::Display for ParseError {
7272
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
73-
self.fmt(f)
73+
if let ParseError::Error(v) = self {
74+
Ok(())
75+
}
76+
else{
77+
Err(fmt::Error{})
78+
}
7479
}
7580
}
7681
}

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ extern crate std;
4848

4949
extern crate serde;
5050
extern crate serde_json;
51-
extern crate serde_value;
5251
extern crate snafu;
5352

5453
pub mod event;

0 commit comments

Comments
 (0)