More adjustments

This commit is contained in:
2023-05-29 21:34:54 +01:00
parent 12112ff063
commit 5a18f14d3b
11 changed files with 47 additions and 37 deletions

View File

@@ -34,11 +34,9 @@ macro_rules! externfn_impl {
let closure = $next_atomic;
match closure(self, arg) {
// ? casts the result but we want to strictly forward it
Ok(r) => Ok($crate::interpreted::Clause::P(
$crate::Primitive::Atom(
$crate::foreign::Atom::new(r),
),
)),
Ok(r) => Ok($crate::interpreted::Clause::P($crate::Primitive::Atom(
$crate::foreign::Atom::new(r),
))),
Err(e) => Err(e),
}
}