diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-01-28 12:32:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 12:32:35 +0000 |
commit | 871a22eaf4b8fce71fb616ca909a0f2b46802716 (patch) | |
tree | 569c03c0a4f03456d62352de69e56c35a6f710d3 /alacritty | |
parent | 6b327b6f8f0f308ff8f46cdf551ce0d0f3eda60b (diff) | |
download | r-alacritty-871a22eaf4b8fce71fb616ca909a0f2b46802716.tar.gz r-alacritty-871a22eaf4b8fce71fb616ca909a0f2b46802716.tar.bz2 r-alacritty-871a22eaf4b8fce71fb616ca909a0f2b46802716.zip |
Fix inconsistent test module naming
Diffstat (limited to 'alacritty')
-rw-r--r-- | alacritty/src/cli.rs | 8 | ||||
-rw-r--r-- | alacritty/src/config/bindings.rs | 2 | ||||
-rw-r--r-- | alacritty/src/config/mod.rs | 2 | ||||
-rw-r--r-- | alacritty/src/url.rs | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs index 7e45e242..30f0938c 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 1a9f95af..d5360e9a 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 56e09be7..1c5f7ba5 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 4c5aed2a..1840c22c 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}; |