diff --git a/pstree.rs b/pstree.rs index eabd6cb..03b310f 100644 --- a/pstree.rs +++ b/pstree.rs @@ -27,10 +27,7 @@ // of different items, notably the process name and its parent process id (ppid). // And with that information, we can build the process tree. -#![feature(std_misc)] // hash_map::Entry -#![feature(path)] -#![feature(fs)] -#![feature(io)] +#![feature(path_ext)] use std::path::Path; use std::fs; @@ -127,7 +124,7 @@ fn populate_node_helper(node: &mut ProcessTreeNode, pid_map: &HashMap { child_nodes.extend(children.iter().map(|child_pid| { - let record = pid_map[*child_pid]; + let record = pid_map[child_pid]; let mut child = ProcessTreeNode::new(record); populate_node_helper(&mut child, pid_map, ppid_map); child