Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Auto-format: cargo fmt --all
  • Loading branch information
github-actions[bot] committed Feb 8, 2026
commit 4e8cf971c7541637ff52dffd787ad12f3ab7183e
5 changes: 4 additions & 1 deletion crates/vm/src/stdlib/ctypes/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,10 @@ impl PyCPointer {
for _ in 0..len {
let addr = (ptr_value as isize + cur * wchar_size as isize) as *const libc::wchar_t;
unsafe {
#[allow(clippy::unnecessary_cast, reason = "wchar_t is i32 on some platforms and u32 on others")]
#[allow(
clippy::unnecessary_cast,
reason = "wchar_t is i32 on some platforms and u32 on others"
)]
if let Some(c) = char::from_u32(*addr as u32) {
result.push(c);
}
Expand Down
Loading