Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tibordp committed Oct 3, 2024
1 parent bdb32c1 commit 93d7a32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sysroot/std/result.alu
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,11 @@ impl Result<T, E> {
#[inline(never)]
fn unwrap_panic_ok(ok: T) -> ! {
use fmt::debug;
panic!("unwrap on an ok value: {}", ok.debug())
when ok is fmt::Formattable<T, panicking::internal::PanicFormatter> {
panic!("unwrap on an ok value: {}", ok)
} else {
panic!("unwrap on an ok value: {}", ok.debug())
}
}

if self.is_err() {
Expand Down

0 comments on commit 93d7a32

Please sign in to comment.