Skip to content

Commit ff6cbc0

Browse files
committed
Fix Clippy warnings
Signed-off-by: Joe Richey <[email protected]>
1 parent 73f17a2 commit ff6cbc0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/registers/rflags.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,12 @@ mod x86_64 {
119119
/// flags also used by Rust/LLVM can result in undefined behavior too.
120120
#[inline]
121121
pub unsafe fn write_raw(val: u64) {
122+
// FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
122123
#[cfg(feature = "inline_asm")]
123-
{
124-
// FIXME - There's probably a better way than saying we preserve the flags even though we actually don't
125-
asm!("push {}; popf", in(reg) val, options(preserves_flags))
126-
};
124+
asm!("push {}; popf", in(reg) val, options(preserves_flags));
127125

128126
#[cfg(not(feature = "inline_asm"))]
129-
{
130-
crate::asm::x86_64_asm_write_rflags(val)
131-
}
127+
crate::asm::x86_64_asm_write_rflags(val);
132128
}
133129

134130
#[cfg(test)]

0 commit comments

Comments
 (0)