mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
more renaming
This commit is contained in:
parent
7ce8f8058d
commit
186f744715
9 changed files with 213 additions and 341 deletions
|
|
@ -53,14 +53,6 @@ pub fn err_other<E, S: Into<String>>(msg: S) -> impl FnOnce(E) -> Err<TransError
|
|||
move |_| Err::Error(ConException::SyntaxError(vec![msg.into()]).into_trans())
|
||||
}
|
||||
|
||||
pub fn failure<E>(err: Err<E>) -> Err<E> {
|
||||
match err {
|
||||
Err::Incomplete(needed) => Err::Incomplete(needed),
|
||||
Err::Error(e) => Err::Failure(e),
|
||||
Err::Failure(e) => Err::Failure(e),
|
||||
}
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! fail {
|
||||
($cause:expr) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue