Fix clippy pedantic warnings (#204)

This commit is contained in:
Gnome!
2023-11-09 11:42:41 +00:00
committed by Kyle Simpson
parent 63d48ee597
commit 3d307aaa8b
22 changed files with 96 additions and 64 deletions

View File

@@ -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());

View File

@@ -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.