From 0db2fc7865cff5c7455889093042329b9f5ef68c Mon Sep 17 00:00:00 2001 From: Pavel Roskin <1317472+proski@users.noreply.github.com> Date: Sat, 28 Oct 2023 17:53:31 -0700 Subject: Fix clippy warnings --- alacritty_terminal/src/term/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 46a94f17..b2f4ea61 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -2982,7 +2982,7 @@ mod tests { term.push_title(); term.set_title(Some("Next".into())); assert_eq!(term.title, Some("Next".into())); - assert_eq!(term.title_stack.get(0).unwrap(), &Some("Test".into())); + assert_eq!(term.title_stack.first().unwrap(), &Some("Test".into())); // Title can be popped from stack and set as the window title. term.pop_title(); -- cgit v1.2.3-54-g00ecf