Skip to content

Commit

Permalink
Fix unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and orium committed Nov 29, 2024
1 parent 9a124eb commit c48aef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/debug_trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cfg_if! {
$({
use std::char;

print!(": {:?}", $ch.map(|ch| unsafe { char::from_u32_unchecked(ch as u32) }));
print!(": {:?}", $ch.map(|ch| char::from_u32(ch as u32).unwrap_or('\u{fffd}') ));
})*

println!();
Expand Down

0 comments on commit c48aef5

Please sign in to comment.