Skip to content

Commit a715496

Browse files
committed
fix cargo fmt --check
1 parent 46e432c commit a715496

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/machine/stack.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@ impl Stack {
204204
}
205205

206206
pub(crate) fn top(&self) -> usize {
207-
unsafe {
208-
(*self.buf.ptr.get()) as usize - self.buf.base as usize
209-
}
207+
unsafe { (*self.buf.ptr.get()) as usize - self.buf.base as usize }
210208
}
211209

212210
pub(crate) fn allocate_or_frame(&mut self, num_cells: usize) -> usize {

src/machine/system_calls.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,13 @@ impl Machine {
12011201
match &self.code[bp] {
12021202
Instruction::IndexingCode(ref indexing_code) => {
12031203
let indexing_code_ptr = match &indexing_code[0] {
1204-
&IndexingLine::Indexing(IndexingInstruction::SwitchOnTerm(_, _, c, _, s)) => {
1204+
&IndexingLine::Indexing(IndexingInstruction::SwitchOnTerm(
1205+
_,
1206+
_,
1207+
c,
1208+
_,
1209+
s,
1210+
)) => {
12051211
if key.1 > 0 {
12061212
s
12071213
} else {
@@ -1260,7 +1266,10 @@ impl Machine {
12601266
bp -= offset;
12611267
}
12621268
_ => {
1263-
return (skeleton.core.clause_clause_locs.back().cloned().unwrap(), bp);
1269+
return (
1270+
skeleton.core.clause_clause_locs.back().cloned().unwrap(),
1271+
bp,
1272+
);
12641273
}
12651274
}
12661275
}

0 commit comments

Comments
 (0)