Skip to content

Commit 8298b32

Browse files
committed
Fix warnings and errors with Rust 1.19
1 parent 8d48ca0 commit 8298b32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#![doc(html_root_url = "https://docs.rs/streaming-iterator/0.1")]
4040
#![warn(missing_docs)]
4141
// for compatibility down to Rust 1.19 (`dyn` needs 1.27)
42-
#![allow(bare_trait_objects)]
42+
#![allow(unknown_lints, bare_trait_objects)]
4343
#![cfg_attr(not(feature = "std"), no_std)]
4444

4545
#[cfg(feature = "std")]
@@ -1956,8 +1956,9 @@ mod test {
19561956

19571957
#[test]
19581958
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()"));
19611962
it.advance();
19621963
assert!(!it.is_done());
19631964
it.advance();

0 commit comments

Comments
 (0)