From fe0ed22080dea05c025b5017ff630b8cf9af95ec Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Mon, 11 May 2015 21:41:36 -0500 Subject: [PATCH] rustup: update to run on the latest rust nightlies Signed-off-by: Paul Osborne --- pstree.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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