Skip to content

Commit 633e7aa

Browse files
committed
delete non empty map
1 parent febd2ea commit 633e7aa

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/rule/non_empty.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
mod non_empty_map;
21
mod non_empty_string;
32
mod non_empty_vec;
43
mod non_empty_vec_deque;
54

65
use crate::rule::composer::Not;
76
use crate::rule::{EmptyDefinition, EmptyRule};
87
use crate::Refined;
8+
use std::iter::Map;
99

10-
pub use non_empty_map::*;
1110
pub use non_empty_string::*;
1211
pub use non_empty_vec::*;
1312

@@ -28,7 +27,7 @@ pub type NonEmpty<T> = Refined<NonEmptyRule<T>>;
2827
pub type NonEmptyRule<T> = Not<EmptyRule<T>>;
2928

3029
impl<I: ExactSizeIterator + EmptyDefinition> NonEmpty<I> {
31-
pub fn map<B, F>(self, f: F) -> NonEmptyMap<I, F>
30+
pub fn map<B, F>(self, f: F) -> Refined<NonEmptyRule<Map<I, F>>>
3231
where
3332
Self: Sized,
3433
F: FnMut(I::Item) -> B,

src/rule/non_empty/non_empty_map.rs

-6
This file was deleted.

0 commit comments

Comments
 (0)