From e5d44b97314cde0756126b60264e156b003765f4 Mon Sep 17 00:00:00 2001 From: Daniel Lehmann Date: Tue, 28 Jul 2026 10:30:17 -0700 Subject: [PATCH] Fix broken intra-doc links in UInt docs Rustdoc failed with -D warnings because `mem::transmute` was not in scope and `bytemuck` is an optional dependency not available when building docs. Use the full `core::mem::transmute` path and drop the link on `bytemuck::cast`, matching the wording in signed.rs. --- src/unsigned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unsigned.rs b/src/unsigned.rs index 9dd09ab..2005837 100644 --- a/src/unsigned.rs +++ b/src/unsigned.rs @@ -120,7 +120,7 @@ impl_integer_native!((u8, i8), (u16, i16), (u32, i32), (u64, i64), (u128, i128)) /// /// # Representation /// The result of [`Self::value`] is guaranteed to match the in-memory representation -/// that would be seen by [`mem::transmute`] or [`bytemuck::cast`]. +/// that would be seen by [`core::mem::transmute`] or `bytemuck::cast`. /// So as long as the value is valid, it is safe to transmute back and forth from `T`. /// /// When `cfg(feature = "bytemuck")` is set, the appropriate bytemuck traits will be implemented.