diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs index 7e45e24..30f0938 100644 --- a/alacritty/src/cli.rs +++ b/alacritty/src/cli.rs @@ -219,16 +219,16 @@ impl Options { options.embed = matches.value_of("embed").map(ToOwned::to_owned); match matches.occurrences_of("q") { - 0 => {}, + 0 => (), 1 => options.log_level = LevelFilter::Error, - 2 | _ => options.log_level = LevelFilter::Off, + _ => options.log_level = LevelFilter::Off, } match matches.occurrences_of("v") { 0 if !options.print_events => options.log_level = LevelFilter::Warn, 0 | 1 => options.log_level = LevelFilter::Info, 2 => options.log_level = LevelFilter::Debug, - 3 | _ => options.log_level = LevelFilter::Trace, + _ => options.log_level = LevelFilter::Trace, } if let Some(dir) = matches.value_of("working-directory") { @@ -302,7 +302,7 @@ impl Options { } #[cfg(test)] -mod test { +mod tests { use crate::cli::Options; use crate::config::Config; diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 1a9f95a..d5360e9 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -885,7 +885,7 @@ impl<'a> de::Deserialize<'a> for ModsWrapper { } #[cfg(test)] -mod test { +mod tests { use glutin::event::ModifiersState; use alacritty_terminal::term::TermMode; diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index 56e09be..1c5f7ba 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -215,7 +215,7 @@ fn print_deprecation_warnings(config: &Config) { } #[cfg(test)] -mod test { +mod tests { static DEFAULT_ALACRITTY_CONFIG: &str = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/../alacritty.yml")); diff --git a/alacritty/src/url.rs b/alacritty/src/url.rs index 4c5aed2..1840c22 100644 --- a/alacritty/src/url.rs +++ b/alacritty/src/url.rs @@ -188,7 +188,7 @@ impl Urls { } #[cfg(test)] -mod test { +mod tests { use super::*; use alacritty_terminal::index::{Column, Line}; diff --git a/alacritty_terminal/src/grid/storage.rs b/alacritty_terminal/src/grid/storage.rs index 145e302..8a5c93c 100644 --- a/alacritty_terminal/src/grid/storage.rs +++ b/alacritty_terminal/src/grid/storage.rs @@ -288,7 +288,7 @@ impl IndexMut for Storage { } #[cfg(test)] -mod test { +mod tests { use crate::grid::row::Row; use crate::grid::storage::{Storage, MAX_CACHE_SIZE}; use crate::grid::GridCell; diff --git a/alacritty_terminal/src/message_bar.rs b/alacritty_terminal/src/message_bar.rs index 1382684..67de52b 100644 --- a/alacritty_terminal/src/message_bar.rs +++ b/alacritty_terminal/src/message_bar.rs @@ -173,7 +173,7 @@ impl MessageBuffer { } #[cfg(test)] -mod test { +mod tests { use super::{Message, MessageBuffer, MIN_FREE_LINES}; use crate::term::{color, SizeInfo}; diff --git a/alacritty_terminal/src/selection.rs b/alacritty_terminal/src/selection.rs index 92335e1..f2c98a5 100644 --- a/alacritty_terminal/src/selection.rs +++ b/alacritty_terminal/src/selection.rs @@ -442,7 +442,7 @@ impl Selection { /// and [EX] (at the start), or [BE] for a single cell. Partially selected cells /// look like [ B] and [E ]. #[cfg(test)] -mod test { +mod tests { use std::mem; use super::{Selection, SelectionRange}; diff --git a/alacritty_terminal/src/tty/windows/child.rs b/alacritty_terminal/src/tty/windows/child.rs index 447b7fb..69bff75 100644 --- a/alacritty_terminal/src/tty/windows/child.rs +++ b/alacritty_terminal/src/tty/windows/child.rs @@ -76,7 +76,7 @@ impl Drop for ChildExitWatcher { } #[cfg(test)] -mod test { +mod tests { use std::os::windows::io::AsRawHandle; use std::process::Command; use std::time::Duration;