Continue removing MyError.

This commit is contained in:
Tom Alexander
2023-10-17 10:09:37 -04:00
parent c9d7251e3b
commit 77e6c22ad8
29 changed files with 84 additions and 128 deletions

View File

@@ -51,9 +51,7 @@ pub(crate) fn radio_link<'b, 'g, 'r, 's>(
));
}
}
Err(nom::Err::Error(CustomError::MyError(MyError(
"NoRadioLink",
))))
Err(nom::Err::Error(CustomError::Static("NoRadioLink")))
}
#[cfg_attr(
@@ -97,9 +95,9 @@ pub(crate) fn rematch_target<'x, 'b, 'g, 'r, 's>(
new_matches.push(new_match);
}
_ => {
return Err(nom::Err::Error(CustomError::MyError(MyError(
return Err(nom::Err::Error(CustomError::Static(
"OnlyMinimalSetObjectsAllowed",
))));
)));
}
};
}