From 90223e9090a37f6edad243b6f1556627e541b261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Kr=C3=B6ger?= Date: Mon, 13 May 2024 14:23:12 +0200 Subject: [PATCH] clippy fix --- src/virtual_keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtual_keyboard.rs b/src/virtual_keyboard.rs index 7d77448..d0adbea 100644 --- a/src/virtual_keyboard.rs +++ b/src/virtual_keyboard.rs @@ -94,7 +94,7 @@ impl VirtualKeyboard { // Check for cycles and find the base layer. let base_layer = *algo::toposort(&layer_graph, None) .expect("Cycle in layer graph") - .get(0) + .first() .unwrap_or(&NodeIndex::new(0)); Self {