examples: fix 2 unused var warnings
parent
7f4cf08516
commit
4a70d2fe51
|
@ -41,7 +41,7 @@ fn greet_func(cmd cli.Command) {
|
||||||
language := cmd.flags.get_string('language') or { panic('failed to get \'language\' flag: $err') }
|
language := cmd.flags.get_string('language') or { panic('failed to get \'language\' flag: $err') }
|
||||||
times := cmd.flags.get_int('times') or { panic('failed to get \'times\' flag: $err') }
|
times := cmd.flags.get_int('times') or { panic('failed to get \'times\' flag: $err') }
|
||||||
|
|
||||||
for i in 0..times {
|
for _ in 0..times {
|
||||||
match language {
|
match language {
|
||||||
'english' { println('Hello World') }
|
'english' { println('Hello World') }
|
||||||
'german' { println('Hallo Welt') }
|
'german' { println('Hallo Welt') }
|
||||||
|
|
|
@ -190,7 +190,7 @@ fn handle_conn<T>(conn net.Socket, app mut T) {
|
||||||
mut len := 0
|
mut len := 0
|
||||||
mut body_len := 0
|
mut body_len := 0
|
||||||
//for line in lines[1..] {
|
//for line in lines[1..] {
|
||||||
for j in 0..100 {
|
for _ in 0..100 {
|
||||||
//println(j)
|
//println(j)
|
||||||
line := conn.read_line()
|
line := conn.read_line()
|
||||||
sline := strip(line)
|
sline := strip(line)
|
||||||
|
|
Loading…
Reference in New Issue