File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
<!-- next-header -->
8
8
## [ Unreleased] - ReleaseDate
9
9
10
+ ### Added
11
+
12
+ - The ` boxed ` function is now available for predicates with an ` Item ` type that
13
+ is not ` Sized ` .
14
+
10
15
## [ 3.1.2] - 2024-07-25
11
16
12
17
## [ 3.1.1] - 2024-07-25
Original file line number Diff line number Diff line change @@ -114,4 +114,15 @@ where
114
114
}
115
115
}
116
116
117
- impl < P , Item > PredicateBoxExt < Item > for P where P : Predicate < Item > { }
117
+ impl < P , Item : ?Sized > PredicateBoxExt < Item > for P where P : Predicate < Item > { }
118
+
119
+ #[ cfg( test) ]
120
+ mod test {
121
+ use crate :: prelude:: * ;
122
+
123
+ #[ test]
124
+ fn unsized_boxed ( ) {
125
+ let p = predicate:: always ( ) . boxed ( ) ;
126
+ p. eval ( "4" ) ;
127
+ }
128
+ }
You can’t perform that action at this time.
0 commit comments