From 47822d8d6c10b187d3fbeccaa375f0f1dbae8c41 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Tue, 26 Dec 2023 23:15:06 -0500 Subject: [PATCH] Fix clippy warning --- src/oauth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth.rs b/src/oauth.rs index 7c9182c..7351ffc 100644 --- a/src/oauth.rs +++ b/src/oauth.rs @@ -212,7 +212,7 @@ impl Device { // Waiting on fastrand 2.0.0 for the `choose` function // https://github.com/smol-rs/fastrand/pull/59/ fn choose(list: &[T]) -> T { - *fastrand::choose_multiple(list.into_iter(), 1)[0] + *fastrand::choose_multiple(list.iter(), 1)[0] } #[tokio::test(flavor = "multi_thread", worker_threads = 1)]