We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5bd6da7 + 7cd735b commit 6db4ca3Copy full SHA for 6db4ca3
2 files changed
CHANGELOG.md
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
<!-- next-header -->
8
## [Unreleased] - ReleaseDate
9
10
+### Added
11
+
12
+- The `boxed` function is now available for predicates with an `Item` type that
13
+ is not `Sized`.
14
15
## [3.1.2] - 2024-07-25
16
17
## [3.1.1] - 2024-07-25
src/boxed.rs
@@ -114,4 +114,15 @@ where
114
}
115
116
117
-impl<P, Item> PredicateBoxExt<Item> for P where P: Predicate<Item> {}
+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
+}
0 commit comments