Fix imports for procfs v0.7.7

* Everything we need is under process:: now, so prefix with it.
This commit is contained in:
Eduardo Alonso 2020-01-22 02:26:35 +01:00
parent 01bde4f2b2
commit a5e2342bfd

View File

@ -5,7 +5,7 @@ use std::sync::mpsc;
use std::convert::TryInto; use std::convert::TryInto;
#[cfg(unix)] #[cfg(unix)]
use procfs::MemoryMap; use procfs::process::MemoryMap;
use netstat::*; use netstat::*;
use read_process_memory::*; use read_process_memory::*;
@ -228,7 +228,7 @@ fn get_mem_maps(pid: Pid) -> Vec<MemoryMap> {
#[cfg(unix)] #[cfg(unix)]
fn get_mem_maps(pid: Pid) -> Vec<MemoryMap>{ fn get_mem_maps(pid: Pid) -> Vec<MemoryMap>{
let mut ret: Vec<MemoryMap> = Vec::new(); let mut ret: Vec<MemoryMap> = Vec::new();
let habbo_proc = procfs::Process::new(pid as i32).unwrap(); let habbo_proc = procfs::process::Process::new(pid as i32).unwrap();
let maps = habbo_proc.maps().unwrap(); let maps = habbo_proc.maps().unwrap();