From f4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 7 Dec 2023 23:00:09 +0100 Subject: remove prelude --- src/reg.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/reg.rs') diff --git a/src/reg.rs b/src/reg.rs index 15417c4..43fd8af 100644 --- a/src/reg.rs +++ b/src/reg.rs @@ -158,7 +158,10 @@ mod tests { assert!(!r.rexw()); // Check need REX byte. - let rex = matches!(r, r8l | r9l | r10l | r11l | r12l | r13l | r14l | r15l | spl | bpl | sil | dil); + let rex = matches!( + r, + r8l | r9l | r10l | r11l | r12l | r13l | r14l | r15l | spl | bpl | sil | dil + ); assert_eq!(r.need_rex(), rex); // Check need SIB byte. -- cgit v1.2.3