about summary refs log tree commit diff
path: root/library/std/src/io/error
diff options
context:
space:
mode:
authorAria Beingessner <a.beingessner@gmail.com>2022-03-26 17:03:40 -0400
committerAria Beingessner <a.beingessner@gmail.com>2022-03-29 20:18:27 -0400
commit7514d760b8fabd46e4874520b653ab8803c3517e (patch)
treead06f9326522bc789d650376a836f1d49fbfeb83 /library/std/src/io/error
parent31e1cde4b5bd70dfe892f5e7bc449ad3a6e1d773 (diff)
downloadrust-7514d760b8fabd46e4874520b653ab8803c3517e.tar.gz
rust-7514d760b8fabd46e4874520b653ab8803c3517e.zip
cleanup some of the less terrifying library code
Diffstat (limited to 'library/std/src/io/error')
-rw-r--r--library/std/src/io/error/repr_bitpacked.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/io/error/repr_bitpacked.rs b/library/std/src/io/error/repr_bitpacked.rs
index 7cc1c701064..e80068b46ab 100644
--- a/library/std/src/io/error/repr_bitpacked.rs
+++ b/library/std/src/io/error/repr_bitpacked.rs
@@ -136,7 +136,7 @@ impl Repr {
         let p = Box::into_raw(b).cast::<u8>();
         // Should only be possible if an allocator handed out a pointer with
         // wrong alignment.
-        debug_assert_eq!((p.addr() & TAG_MASK), 0);
+        debug_assert_eq!(p.addr() & TAG_MASK, 0);
         // Note: We know `TAG_CUSTOM <= size_of::<Custom>()` (static_assert at
         // end of file), and both the start and end of the expression must be
         // valid without address space wraparound due to `Box`'s semantics.