File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1
- use crate :: rule:: { EmptyDefinition , NonEmpty , NonEmptyRule } ;
1
+ use crate :: rule:: { NonEmpty , NonEmptyRule } ;
2
2
use crate :: Refined ;
3
3
4
4
use std:: ops:: Add ;
@@ -15,10 +15,7 @@ use std::ops::Add;
15
15
pub type NonEmptyVec < T > = Refined < NonEmptyVecRule < T > > ;
16
16
pub type NonEmptyVecRule < T > = NonEmptyRule < Vec < T > > ;
17
17
18
- impl < T > NonEmptyVec < T >
19
- where
20
- T : EmptyDefinition ,
21
- {
18
+ impl < T > NonEmptyVec < T > {
22
19
#[ allow( clippy:: should_implement_trait) ]
23
20
pub fn into_iter ( self ) -> NonEmpty < std:: vec:: IntoIter < T > > {
24
21
Refined :: new ( self . into_value ( ) . into_iter ( ) )
Original file line number Diff line number Diff line change 1
- use crate :: rule:: { EmptyDefinition , NonEmpty , NonEmptyRule } ;
1
+ use crate :: rule:: { NonEmpty , NonEmptyRule } ;
2
2
use crate :: Refined ;
3
3
use std:: collections:: VecDeque ;
4
4
use std:: ops:: Add ;
@@ -19,10 +19,7 @@ use std::ops::Add;
19
19
pub type NonEmptyVecDeque < T > = Refined < NonEmptyVecDequeRule < T > > ;
20
20
pub type NonEmptyVecDequeRule < T > = NonEmptyRule < VecDeque < T > > ;
21
21
22
- impl < T > NonEmptyVecDeque < T >
23
- where
24
- T : EmptyDefinition ,
25
- {
22
+ impl < T > NonEmptyVecDeque < T > {
26
23
#[ allow( clippy:: should_implement_trait) ]
27
24
pub fn into_iter ( self ) -> NonEmpty < std:: collections:: vec_deque:: IntoIter < T > > {
28
25
Refined :: new ( self . into_value ( ) . into_iter ( ) )
You can’t perform that action at this time.
0 commit comments