mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
tty: Fix clippy warning
This commit is contained in:
+1
-1
@@ -508,7 +508,7 @@ impl Tty {
|
||||
|
||||
if mode.is_none() {
|
||||
// Last attempt.
|
||||
mode = connector.modes().get(0);
|
||||
mode = connector.modes().first();
|
||||
}
|
||||
|
||||
let mode = mode.ok_or_else(|| anyhow!("no mode"))?;
|
||||
|
||||
Reference in New Issue
Block a user