Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:13:00 -04:00
parent 77e6c22ad8
commit e776a051ad
5 changed files with 10 additions and 16 deletions

View File

@@ -162,11 +162,7 @@ fn parse_path_reg<'b, 'g, 'r, 's>(
parser_with_context!(protocol_path_reg)(context),
fuzzy_path_reg,
))(replaced_input)
.map_err(|_| {
nom::Err::Error(CustomError::MyError(MyError(
"No pathreg match after replacement.",
)))
})?;
.map_err(|_| nom::Err::Error(CustomError::Static("No pathreg match after replacement.")))?;
let remaining = input.take(input.len());
let link_type = match link.link_type {
LinkType::Protocol(protocol) => LinkType::Protocol(protocol.into_owned().into()),