Skip to content

Commit

Permalink
Impl Error for ParseError #4
Browse files Browse the repository at this point in the history
  • Loading branch information
evenorog committed Sep 7, 2024
1 parent f2d5a21 commit 211e628
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#[cfg(feature = "serde")]
mod serde;

use core::error::Error;
use core::fmt::{self, Debug, Display, Formatter};
use core::str::FromStr;

Expand Down Expand Up @@ -159,3 +160,5 @@ impl Display for ParseError {
Display::fmt("SPDX id not found", f)
}
}

impl Error for ParseError {}

0 comments on commit 211e628

Please sign in to comment.