File tree 5 files changed +7
-6
lines changed
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import std::comm;
4
4
#[ test]
5
5
fn create_port_and_chan ( ) {
6
6
let p = comm:: mk_port :: < int > ( ) ;
7
- let c = p. mk_chan ( ) ;
7
+ p. mk_chan ( ) ;
8
8
}
9
9
10
10
#[ test]
@@ -39,5 +39,5 @@ fn chan_chan() {
39
39
let p = comm:: port ( ) , p2 = comm:: port :: < int > ( ) ;
40
40
let c = comm:: chan ( p) ;
41
41
comm:: send ( c, comm:: chan ( p2) ) ;
42
- let c2 = comm:: recv ( p) ;
42
+ comm:: recv ( p) ;
43
43
}
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ import std::vec::len;
6
6
fn test_either_left ( ) {
7
7
let val = left ( 10 ) ;
8
8
fn f_left ( x : & int ) -> bool { x == 10 }
9
- fn f_right ( x : & uint ) -> bool { false }
9
+ fn f_right ( _x : & uint ) -> bool { false }
10
10
assert ( either ( f_left, f_right, val) ) ;
11
11
}
12
12
13
13
#[ test]
14
14
fn test_either_right ( ) {
15
15
let val = right ( 10 u) ;
16
- fn f_left ( x : & int ) -> bool { false }
16
+ fn f_left ( _x : & int ) -> bool { false }
17
17
fn f_right ( x : & uint ) -> bool { x == 10 u }
18
18
assert ( either ( f_left, f_right, val) ) ;
19
19
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ fn test_find_success() {
35
35
#[ test]
36
36
fn test_find_fail ( ) {
37
37
let l = from_vec ( [ 0 , 1 , 2 ] ) ;
38
- fn match ( i : & int ) -> option:: t < int > { ret option:: none :: < int > ; }
38
+ fn match ( _i : & int ) -> option:: t < int > { ret option:: none :: < int > ; }
39
39
let rs = list:: find ( l, match ) ;
40
40
assert ( rs == option:: none :: < int > ) ;
41
41
}
Original file line number Diff line number Diff line change 2
2
use std;
3
3
4
4
#[ test]
5
- fn test ( ) { let x = std:: option:: some :: < int > ( 10 ) ; }
5
+ fn test ( ) { let _x = std:: option:: some :: < int > ( 10 ) ; }
Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ fn reverse_and_reversed() {
359
359
// Make sure they work with 0-length vectors too.
360
360
361
361
let v4 = vec:: reversed :: < int > ( [ ] ) ;
362
+ assert v4 == [ ] ;
362
363
let v3: [ mutable int] = [ mutable] ;
363
364
vec:: reverse :: < int > ( v3) ;
364
365
}
You can’t perform that action at this time.
0 commit comments