fix(clippy): appease

This commit is contained in:
Ashley Williams 2022-12-16 07:56:00 -06:00
parent ab9c20f180
commit 3c62510e12
1 changed files with 15 additions and 9 deletions

View File

@ -172,9 +172,11 @@ mod tests {
#[test]
fn test_events_iter() {
let mut events: Events<&str> = Events::default();
events.abort = Some("abort");
events.waiting = Some("waiting");
let events = Events::<&str> {
abort: Some("abort"),
waiting: Some("waiting"),
..Default::default()
};
let mut iter = events.iter();
assert_eq!(iter.next(), Some(("abort", &"abort")));
@ -184,9 +186,11 @@ mod tests {
#[test]
fn test_events_iter_mut() {
let mut events: Events<&str> = Events::default();
events.abort = Some("abort");
events.waiting = Some("waiting");
let mut events = Events::<&str> {
abort: Some("abort"),
waiting: Some("waiting"),
..Default::default()
};
let mut iter = events.iter_mut();
assert_eq!(iter.next(), Some(("abort", &mut "abort")));
@ -196,9 +200,11 @@ mod tests {
#[test]
fn test_events_into_iter() {
let mut events: Events<&str> = Events::default();
events.abort = Some("abort");
events.waiting = Some("waiting");
let events = Events::<&str> {
abort: Some("abort"),
waiting: Some("waiting"),
..Default::default()
};
let mut iter = events.into_iter();
assert_eq!(iter.next(), Some(("abort", "abort")));