From 2ef62f0e2d05b95b68c321de2bcb3d3cf16f20b3 Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Fri, 18 Mar 2016 14:02:45 -0500 Subject: [PATCH] adress warning and update travis test versions Signed-off-by: Paul Osborne --- .travis.yml | 8 +------- pstree.rs | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d8d34d..adca627 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,9 @@ sudo: false language: rust rust: - - 1.0.0 - - 1.1.0 - - 1.2.0 - - 1.3.0 - - 1.4.0 - - 1.5.0 + - stable - beta - nightly script: - - cargo build --verbose - cargo test --verbose diff --git a/pstree.rs b/pstree.rs index 67e78da..641b8af 100644 --- a/pstree.rs +++ b/pstree.rs @@ -175,7 +175,7 @@ fn build_process_tree() -> ProcessTree { fn print_node(node : &ProcessTreeNode, indent_level : i32) { // print indentation - for _ in (0..indent_level) { + for _ in 0..indent_level { print!(" "); } println!("- {} #{}", node.record.name, node.record.pid);