Skip to content

Commit 1ccd685

Browse files
katietheqt-oldjosephlr
authored andcommitted
Make rustfmt happy
1 parent 79d8941 commit 1ccd685

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/instructions/segmentation.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub unsafe fn load_ds(sel: SegmentSelector) {
7070
#[inline]
7171
pub unsafe fn load_es(sel: SegmentSelector) {
7272
#[cfg(feature = "inline_asm")]
73-
asm!("mov es, {0:x}", in(reg) sel.0, options(nostack));
73+
asm!("mov es, {0:x}", in(reg) sel.0, options(nostack));
7474

7575
#[cfg(not(feature = "inline_asm"))]
7676
crate::asm::x86_64_asm_load_es(sel.0);
@@ -127,9 +127,7 @@ pub fn cs() -> SegmentSelector {
127127
#[cfg(feature = "inline_asm")]
128128
{
129129
let segment: u16;
130-
unsafe {
131-
asm!("mov {0:x}, cs", out(reg) segment, options(nostack, nomem))
132-
};
130+
unsafe { asm!("mov {0:x}, cs", out(reg) segment, options(nostack, nomem)) };
133131
SegmentSelector(segment)
134132
}
135133

0 commit comments

Comments
 (0)