diff --git a/concordium-std/src/impls.rs b/concordium-std/src/impls.rs index ba953bab..76799ffc 100644 --- a/concordium-std/src/impls.rs +++ b/concordium-std/src/impls.rs @@ -2658,6 +2658,8 @@ impl UnwrapAbort for Option { #[inline(always)] #[allow(clippy::redundant_closure)] + // The redundant_closure here is needed since there is an implicit coercion from + // ! to A. This does not happen if we just use unwrap_or_else(crate::trap). fn unwrap_abort(self) -> Self::Unwrap { self.unwrap_or_else(|| crate::trap()) } }