about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/sync
diff options
context:
space:
mode:
authorr0cky <mu001999@outlook.com>2024-05-30 09:51:27 +0800
committerr0cky <mu001999@outlook.com>2024-05-30 09:51:27 +0800
commitdabd05bbab9df465a580858c3e03dc1797b12deb (patch)
treeef0660c4849e779a0454cedfacb6f90f26c26fc7 /compiler/rustc_data_structures/src/sync
parentf2e1a3a80ae54734e1a3d306f31c2caebb05de9b (diff)
downloadrust-dabd05bbab9df465a580858c3e03dc1797b12deb.tar.gz
rust-dabd05bbab9df465a580858c3e03dc1797b12deb.zip
Apply x clippy --fix and x fmt
Diffstat (limited to 'compiler/rustc_data_structures/src/sync')
-rw-r--r--compiler/rustc_data_structures/src/sync/lock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync/lock.rs b/compiler/rustc_data_structures/src/sync/lock.rs
index 756984642c7..780be773945 100644
--- a/compiler/rustc_data_structures/src/sync/lock.rs
+++ b/compiler/rustc_data_structures/src/sync/lock.rs
@@ -69,7 +69,7 @@ mod maybe_sync {
             match self.mode {
                 Mode::NoSync => {
                     let cell = unsafe { &self.lock.mode_union.no_sync };
-                    debug_assert_eq!(cell.get(), true);
+                    debug_assert!(cell.get());
                     cell.set(false);
                 }
                 // SAFETY (unlock): We know that the lock is locked as this type is a proof of that.