Skip to content

Commit

Permalink
Fixed the style.
Browse files Browse the repository at this point in the history
  • Loading branch information
hicklin committed Dec 16, 2024
1 parent 9cd3bc7 commit 8e19f2c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ impl<T, const NS: usize, const ND: usize> TryFrom<[T; NS]> for Deque<T, ND> {
/// // todo change to `assert_eq!(deq1, deq2);` when PR #521 is merged.
/// assert_eq!(deq1.len(), deq2.len());
/// for (i, e1) in deq1.iter().enumerate() {
/// assert_eq!(Some(e1), deq2.get(i));
/// assert_eq!(Some(e1), deq2.get(i));
/// }
/// ```
type Error = ();
Expand Down Expand Up @@ -1487,7 +1487,6 @@ mod tests {

#[test]
fn tyr_from_slice() {

assert!(Deque::<u8, 3>::try_from([1, 2, 3, 4]).is_err());

let deq1 = Deque::<u8, 8>::try_from([1, 2, 3, 4]).unwrap();
Expand All @@ -1500,7 +1499,7 @@ mod tests {
// todo change to `assert_eq!(deq1, deq2);` when PR #521 is merged.
assert_eq!(deq1.len(), deq2.len());
for (i, e1) in deq1.iter().enumerate() {
assert_eq!(Some(e1), deq2.get(i));
assert_eq!(Some(e1), deq2.get(i));
}
}
}

0 comments on commit 8e19f2c

Please sign in to comment.