File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 39
39
#![ doc( html_root_url = "https://docs.rs/streaming-iterator/0.1" ) ]
40
40
#![ warn( missing_docs) ]
41
41
// for compatibility down to Rust 1.19 (`dyn` needs 1.27)
42
- #![ allow( bare_trait_objects) ]
42
+ #![ allow( unknown_lints , bare_trait_objects) ]
43
43
#![ cfg_attr( not( feature = "std" ) , no_std) ]
44
44
45
45
#[ cfg( feature = "std" ) ]
@@ -1956,8 +1956,9 @@ mod test {
1956
1956
1957
1957
#[ test]
1958
1958
fn is_done_map ( ) {
1959
- let mut it = convert ( [ 1 ] . iter ( ) . cloned ( ) )
1960
- . map_ref ( |_: & u8 | -> & u16 { panic ! ( "only called during get()" ) } ) ;
1959
+ let items = [ 1 ] ;
1960
+ let mut it = convert ( items. iter ( ) . cloned ( ) )
1961
+ . map_ref :: < u16 , _ > ( |_| panic ! ( "only called during get()" ) ) ;
1961
1962
it. advance ( ) ;
1962
1963
assert ! ( !it. is_done( ) ) ;
1963
1964
it. advance ( ) ;
You can’t perform that action at this time.
0 commit comments