@@ -182,11 +182,11 @@ fn parse(file: &Path) -> Result<Vec<Binary>, Error> {
182
182
} else {
183
183
BinType :: MachO32
184
184
} ;
185
- fat_bins. append ( & mut vec ! [ Binary :: new(
185
+ fat_bins. push ( Binary :: new (
186
186
bin_type,
187
187
file. display ( ) . to_string ( ) ,
188
188
BinSpecificProperties :: MachO ( results) ,
189
- ) ] ) ;
189
+ ) ) ;
190
190
}
191
191
}
192
192
}
@@ -326,10 +326,7 @@ fn main() {
326
326
let mut procs: Vec < Process > = Vec :: new ( ) ;
327
327
for ( pid, proc_entry) in system. processes ( ) {
328
328
if let Ok ( results) = parse ( proc_entry. exe ( ) ) {
329
- procs. append ( & mut vec ! [ Process :: new(
330
- pid. as_u32( ) as usize ,
331
- results,
332
- ) ] ) ;
329
+ procs. push ( Process :: new ( pid. as_u32 ( ) as usize , results) ) ;
333
330
}
334
331
}
335
332
print_process_results ( & Processes :: new ( procs) , & settings) ;
@@ -370,10 +367,8 @@ fn main() {
370
367
371
368
match parse ( process. exe ( ) ) {
372
369
Ok ( results) => {
373
- procs. append ( & mut vec ! [ Process :: new(
374
- procid. as_u32( ) as usize ,
375
- results,
376
- ) ] ) ;
370
+ procs
371
+ . push ( Process :: new ( procid. as_u32 ( ) as usize , results) ) ;
377
372
}
378
373
Err ( msg) => {
379
374
eprintln ! (
@@ -396,10 +391,10 @@ fn main() {
396
391
let mut procs: Vec < Process > = Vec :: new ( ) ;
397
392
for proc_entry in sysprocs {
398
393
if let Ok ( results) = parse ( proc_entry. exe ( ) ) {
399
- procs. append ( & mut vec ! [ Process :: new(
394
+ procs. push ( Process :: new (
400
395
proc_entry. pid ( ) . as_u32 ( ) as usize ,
401
396
results,
402
- ) ] ) ;
397
+ ) ) ;
403
398
}
404
399
}
405
400
if procs. is_empty ( ) {
0 commit comments