Skip to content

Commit

Permalink
feat: impl Error for ParseError
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jun 10, 2024
1 parent 3230d8b commit 71dec77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{fmt, mem::ManuallyDrop, str::Chars};
use std::{error::Error, fmt, mem::ManuallyDrop, str::Chars};

use super::unicode;
use super::AddrSpec;
Expand Down Expand Up @@ -52,6 +52,8 @@ impl fmt::Display for ParseError {
}
}

impl Error for ParseError {}

pub struct Parser<'a> {
input: &'a str,
iterator: Chars<'a>,
Expand Down

0 comments on commit 71dec77

Please sign in to comment.