File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub struct MemEvents {
44
44
pub enum AccessEvent {
45
45
/// A read occurred on this memory range.
46
46
Read ( AccessRange ) ,
47
- /// A read occurred on this memory range.
47
+ /// A read occurred on this memory range.
48
48
Write ( AccessRange ) ,
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -202,7 +202,9 @@ pub unsafe fn init_sv() -> Result<(), SvInitError> {
202
202
// The "Ok" case means that we couldn't ptrace.
203
203
Ok ( e) => return Err ( e) ,
204
204
Err ( p) => {
205
- eprintln ! ( "Supervisor process panicked!\n {p:?}\n \n Try running again without using the native-lib tracer." ) ;
205
+ eprintln ! (
206
+ "Supervisor process panicked!\n {p:?}\n \n Try running again without using the native-lib tracer."
207
+ ) ;
206
208
std:: process:: exit ( 1 ) ;
207
209
}
208
210
}
Original file line number Diff line number Diff line change @@ -408,10 +408,7 @@ fn handle_segfault(
408
408
match x86_operand. op_type {
409
409
// We only care about memory accesses
410
410
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 ( ) } ;
415
412
// It's called a "RegAccessType" but it also applies to memory
416
413
let acc_ty = x86_operand. access . unwrap ( ) ;
417
414
if acc_ty. is_readable ( ) {
You can’t perform that action at this time.
0 commit comments