Skip to content

Commit 879bb33

Browse files
committed
fmt
1 parent 0913b24 commit 879bb33

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/shims/native_lib/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub struct MemEvents {
4444
pub enum AccessEvent {
4545
/// A read occurred on this memory range.
4646
Read(AccessRange),
47-
/// A read occurred on this memory range.
47+
/// A read occurred on this memory range.
4848
Write(AccessRange),
4949
}
5050

src/shims/native_lib/trace/child.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ pub unsafe fn init_sv() -> Result<(), SvInitError> {
202202
// The "Ok" case means that we couldn't ptrace.
203203
Ok(e) => return Err(e),
204204
Err(p) => {
205-
eprintln!("Supervisor process panicked!\n{p:?}\n\nTry running again without using the native-lib tracer.");
205+
eprintln!(
206+
"Supervisor process panicked!\n{p:?}\n\nTry running again without using the native-lib tracer."
207+
);
206208
std::process::exit(1);
207209
}
208210
}

src/shims/native_lib/trace/parent.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,7 @@ fn handle_segfault(
408408
match x86_operand.op_type {
409409
// We only care about memory accesses
410410
arch::x86::X86OperandType::Mem(_) => {
411-
let push = AccessRange {
412-
addr,
413-
size: x86_operand.size.into(),
414-
};
411+
let push = AccessRange { addr, size: x86_operand.size.into() };
415412
// It's called a "RegAccessType" but it also applies to memory
416413
let acc_ty = x86_operand.access.unwrap();
417414
if acc_ty.is_readable() {

0 commit comments

Comments
 (0)