fix some annoying build warnings

This commit is contained in:
Kent Overstreet 2015-11-20 01:03:24 -09:00
parent a228385394
commit dbd22cfdd8
1 changed files with 2 additions and 2 deletions

View File

@ -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(())