diff options
author | Pavel Roskin <1317472+proski@users.noreply.github.com> | 2023-10-28 17:53:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-29 00:53:31 +0000 |
commit | 0db2fc7865cff5c7455889093042329b9f5ef68c (patch) | |
tree | 94bf2a4d6915d1ffc8fd0cde1bb84cbd9457c17f | |
parent | 308b331cbcedc11e1e89f6553a7cd9419cda6144 (diff) | |
download | alacritty-0db2fc7865cff5c7455889093042329b9f5ef68c.tar.gz alacritty-0db2fc7865cff5c7455889093042329b9f5ef68c.zip |
Fix clippy warnings
-rw-r--r-- | alacritty/src/config/mod.rs | 6 | ||||
-rw-r--r-- | alacritty_terminal/src/term/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index 883ea99f..762e1f39 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -25,11 +25,11 @@ mod bindings; mod mouse; use crate::cli::Options; +#[cfg(test)] +pub use crate::config::bindings::Binding; pub use crate::config::bindings::{ - Action, Binding, BindingKey, BindingMode, MouseAction, SearchAction, ViAction, + Action, BindingKey, BindingMode, MouseAction, SearchAction, ViAction, }; -#[cfg(test)] -pub use crate::config::mouse::Mouse; pub use crate::config::ui_config::UiConfig; /// Maximum number of depth for the configuration file imports. 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(); |