Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/assertions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4003,7 +4003,7 @@ pub trait AssertMapContainsValue<E> {
/// let subject = [42, 43, 44, 45, 46];
/// assert_that!(subject).none_satisfies(|e| *e < 42);
/// ```
pub trait AssertElements<T> {
pub trait AssertFilteredElements<T> {
/// A spec-like type that contains a single element as the subject that is
/// extracted from the iterator.
///
Expand Down
4 changes: 2 additions & 2 deletions src/iterator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Implementations of assertions for `Iterator` values.

use crate::assertions::{
AssertElements, AssertIteratorContains, AssertIteratorContainsInAnyOrder,
AssertFilteredElements, AssertIteratorContains, AssertIteratorContainsInAnyOrder,
AssertIteratorContainsInOrder, AssertOrderedElements,
};
use crate::colored::{
Expand Down Expand Up @@ -783,7 +783,7 @@ where
}
}

impl<'a, S, T, R> AssertElements<T> for Spec<'a, S, R>
impl<'a, S, T, R> AssertFilteredElements<T> for Spec<'a, S, R>
where
S: IntoIterator<Item = T>,
T: Debug,
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@
//! assert_that!(person).is_over_18();
//! ```
//!
//! [`AssertElements`]: assertions::AssertElements
//! [`AssertElements`]: assertions::AssertFilteredElements
//! [`AssertFailure`]: spec::AssertFailure
//! [`Expectation`]: spec::Expectation
//! [`LengthProperty`]: properties::LengthProperty
Expand Down
2 changes: 1 addition & 1 deletion src/recursive_comparison/value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Debug for Field {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let name = &self.name;
let value = &self.value;
write!(f, "{name}: {value:?}",)
write!(f, "{name}: {value:?}")
}
}

Expand Down
Loading