fix some annoying build warnings
This commit is contained in:
parent
a228385394
commit
dbd22cfdd8
|
@ -93,7 +93,7 @@ fn pidigits(n: isize, out: &mut io::Write) -> io::Result<()> {
|
||||||
let mut k = 0;
|
let mut k = 0;
|
||||||
let mut context = Context::new();
|
let mut context = Context::new();
|
||||||
|
|
||||||
for i in (1..(n+1)) {
|
for i in 1..(n+1) {
|
||||||
let mut d;
|
let mut d;
|
||||||
loop {
|
loop {
|
||||||
k += 1;
|
k += 1;
|
||||||
|
@ -110,7 +110,7 @@ fn pidigits(n: isize, out: &mut io::Write) -> io::Result<()> {
|
||||||
|
|
||||||
let m = n % 10;
|
let m = n % 10;
|
||||||
if m != 0 {
|
if m != 0 {
|
||||||
for _ in (m..10) { try!(write!(out, " ")); }
|
for _ in m..10 { try!(write!(out, " ")); }
|
||||||
try!(write!(out, "\t:{}\n", n));
|
try!(write!(out, "\t:{}\n", n));
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in New Issue