Skip to content

Commit

Permalink
impl Predicate<T> for PredicateBoolean even if T: ?Sized
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Nov 18, 2019
1 parent d6ef62e commit 7a17690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - Unreleased
### Fixed
- `BooleanPredicate` now implements `Predicate<T>` where `T: ?Sized`
([#84](https://github.com/assert-rs/predicates-rs/pull/84))

## [1.0.1] - 2019-04-22
### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct BooleanPredicate {
retval: bool,
}

impl<Item> Predicate<Item> for BooleanPredicate {
impl<Item: ?Sized> Predicate<Item> for BooleanPredicate {
fn eval(&self, _variable: &Item) -> bool {
self.retval
}
Expand Down

0 comments on commit 7a17690

Please sign in to comment.