Skip to content

Commit 0ab7d79

Browse files
committed
fix bug
1 parent b11ae1a commit 0ab7d79

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/rule/non_empty/non_empty_vec.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::rule::{EmptyDefinition, NonEmpty, NonEmptyRule};
1+
use crate::rule::{NonEmpty, NonEmptyRule};
22
use crate::Refined;
33

44
use std::ops::Add;
@@ -15,10 +15,7 @@ use std::ops::Add;
1515
pub type NonEmptyVec<T> = Refined<NonEmptyVecRule<T>>;
1616
pub type NonEmptyVecRule<T> = NonEmptyRule<Vec<T>>;
1717

18-
impl<T> NonEmptyVec<T>
19-
where
20-
T: EmptyDefinition,
21-
{
18+
impl<T> NonEmptyVec<T> {
2219
#[allow(clippy::should_implement_trait)]
2320
pub fn into_iter(self) -> NonEmpty<std::vec::IntoIter<T>> {
2421
Refined::new(self.into_value().into_iter())

src/rule/non_empty/non_empty_vec_deque.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::rule::{EmptyDefinition, NonEmpty, NonEmptyRule};
1+
use crate::rule::{NonEmpty, NonEmptyRule};
22
use crate::Refined;
33
use std::collections::VecDeque;
44
use std::ops::Add;
@@ -19,10 +19,7 @@ use std::ops::Add;
1919
pub type NonEmptyVecDeque<T> = Refined<NonEmptyVecDequeRule<T>>;
2020
pub type NonEmptyVecDequeRule<T> = NonEmptyRule<VecDeque<T>>;
2121

22-
impl<T> NonEmptyVecDeque<T>
23-
where
24-
T: EmptyDefinition,
25-
{
22+
impl<T> NonEmptyVecDeque<T> {
2623
#[allow(clippy::should_implement_trait)]
2724
pub fn into_iter(self) -> NonEmpty<std::collections::vec_deque::IntoIter<T>> {
2825
Refined::new(self.into_value().into_iter())

0 commit comments

Comments
 (0)