Skip to content

Commit 8ffaefc

Browse files
committed
Fix warnings about deprecated items
1 parent 75feccb commit 8ffaefc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

examples/iris.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn main() {
5555
// using Itertools::fold_results to create the result of parsing
5656
let irises = DATA.lines()
5757
.map(str::parse)
58-
.fold_results(Vec::new(), |mut v, iris: Iris| {
58+
.fold_ok(Vec::new(), |mut v, iris: Iris| {
5959
v.push(iris);
6060
v
6161
});

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ pub mod structs {
8989
Batching,
9090
MapInto,
9191
MapOk,
92-
MapResults,
9392
Merge,
9493
MergeBy,
9594
TakeWhileRef,
@@ -100,7 +99,7 @@ pub mod structs {
10099
Update,
101100
};
102101
#[allow(deprecated)]
103-
pub use crate::adaptors::Step;
102+
pub use crate::adaptors::{MapResults, Step};
104103
#[cfg(feature = "use_std")]
105104
pub use crate::adaptors::MultiProduct;
106105
#[cfg(feature = "use_std")]

0 commit comments

Comments
 (0)