Browse Source

fix some annoying build warnings

Kent Overstreet 9 years ago
parent
commit
dbd22cfdd8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      benches/shootout-pidigits.rs

+ 2 - 2
benches/shootout-pidigits.rs

@@ -93,7 +93,7 @@ fn pidigits(n: isize, out: &mut io::Write) -> io::Result<()> {
     let mut k = 0;
     let mut context = Context::new();
 
-    for i in (1..(n+1)) {
+    for i in 1..(n+1) {
         let mut d;
         loop {
             k += 1;
@@ -110,7 +110,7 @@ fn pidigits(n: isize, out: &mut io::Write) -> io::Result<()> {
 
     let m = n % 10;
     if m != 0 {
-        for _ in (m..10) { try!(write!(out, " ")); }
+        for _ in m..10 { try!(write!(out, " ")); }
         try!(write!(out, "\t:{}\n", n));
     }
     Ok(())