Skip to content

Commit 59e7d60

Browse files
remove warnings
1 parent 012ceeb commit 59e7d60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(non_snake_case)]
2+
#![allow(unused_must_use)]
23
use std::thread;
34
use std::env;
45
use std::sync::mpsc::SyncSender;
@@ -117,6 +118,7 @@ fn doThread(connections:Vec<[i16; 2]>, path:&mut Vec<i16>, totalNodes:i16) -> Ve
117118
let mut goTo:i16 = 0;
118119
let mut isFirstConnection:bool = true;
119120
for connection in connections.clone() {
121+
#[allow(unused_assignments)]
120122
let mut connectedTo:i16 = 0;
121123
if node == connection[0] {
122124
connectedTo = connection[1];

0 commit comments

Comments
 (0)