Fix clippy pedantic warnings (#204)
This commit is contained in:
@@ -282,7 +282,7 @@ mod tests {
|
||||
let handle = driver.play(Track::from(file).pause());
|
||||
|
||||
let callback = handle.make_playable();
|
||||
t_handle.spawn_ticker().await;
|
||||
t_handle.spawn_ticker();
|
||||
assert!(callback.result_async().await.is_ok());
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ mod tests {
|
||||
|
||||
let target = Duration::from_millis(500);
|
||||
let callback = handle.seek(target);
|
||||
t_handle.spawn_ticker().await;
|
||||
t_handle.spawn_ticker();
|
||||
|
||||
let answer = callback.result_async().await;
|
||||
assert!(answer.is_ok());
|
||||
|
||||
@@ -66,7 +66,7 @@ mod tests {
|
||||
let _ = handle.add_event(Event::Track(TrackEvent::Loop), Looper { tx: l_tx });
|
||||
let _ = handle.add_event(Event::Track(TrackEvent::End), Looper { tx: e_tx });
|
||||
|
||||
t_handle.spawn_ticker().await;
|
||||
t_handle.spawn_ticker();
|
||||
|
||||
// CONDITIONS:
|
||||
// 1) 2 loop events, each changes the loop count.
|
||||
@@ -100,7 +100,7 @@ mod tests {
|
||||
let (l_tx, l_rx) = flume::unbounded();
|
||||
let _ = handle.add_event(Event::Track(TrackEvent::Loop), Looper { tx: l_tx });
|
||||
|
||||
t_handle.spawn_ticker().await;
|
||||
t_handle.spawn_ticker();
|
||||
|
||||
// CONDITIONS:
|
||||
// 1) 3 loop events, each does not change the loop count.
|
||||
|
||||
Reference in New Issue
Block a user