Skip to content

Commit 0c1bd8f

Browse files
committed
cargo fmt
1 parent baf75ac commit 0c1bd8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+72
-72
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{env, process};
22

33
use chrono::{TimeZone, Utc};
4-
use rustc_version::{version_meta, Channel};
4+
use rustc_version::{Channel, version_meta};
55

66
fn main() {
77
println!("cargo::rustc-check-cfg=cfg(allow_unknown_lints)");

src/application.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use anyhow::Result;
44
use parking_lot::Mutex;
55

66
use crate::{
7+
Args,
8+
Exit,
79
config::Config,
810
display::Display,
911
git::Repository,
@@ -15,8 +17,6 @@ use crate::{
1517
search,
1618
todo_file::{TodoFile, TodoFileOptions},
1719
view::View,
18-
Args,
19-
Exit,
2020
};
2121

2222
pub(crate) struct Application<ModuleProvider>
@@ -198,12 +198,12 @@ mod tests {
198198
module::Modules,
199199
runtime::{Installer, RuntimeError},
200200
test_helpers::{
201+
DefaultTestModule,
202+
TestModuleProvider,
201203
create_config,
202204
create_event_reader,
203205
mocks,
204206
with_git_directory,
205-
DefaultTestModule,
206-
TestModuleProvider,
207207
},
208208
};
209209

src/config/git_config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use std::env;
22

33
use crate::{
44
config::{
5-
utils::{get_string, get_unsigned_integer, git_diff_renames},
65
ConfigError,
6+
utils::{get_string, get_unsigned_integer, git_diff_renames},
77
},
88
git::Config,
99
};
@@ -92,7 +92,7 @@ mod tests {
9292
use super::*;
9393
use crate::{
9494
config::ConfigErrorCause,
95-
test_helpers::{invalid_utf, with_env_var, with_git_config, EnvVarAction},
95+
test_helpers::{EnvVarAction, invalid_utf, with_env_var, with_git_config},
9696
};
9797

9898
macro_rules! config_test {

src/config/key_bindings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{utils::get_input, ConfigError},
2+
config::{ConfigError, utils::get_input},
33
git::Config,
44
};
55

src/config/theme.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use crate::{
22
config::{
3-
utils::{get_optional_string, get_string},
43
Color,
54
ConfigError,
65
ConfigErrorCause,
6+
utils::{get_optional_string, get_string},
77
},
88
git::Config,
99
};

src/config/utils/get_bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{utils::get_optional_string, ConfigError, ConfigErrorCause},
2+
config::{ConfigError, ConfigErrorCause, utils::get_optional_string},
33
git::{Config, ErrorCode},
44
};
55

src/config/utils/get_diff_ignore_whitespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{utils::get_string, ConfigError, ConfigErrorCause, DiffIgnoreWhitespaceSetting},
2+
config::{ConfigError, ConfigErrorCause, DiffIgnoreWhitespaceSetting, utils::get_string},
33
git::Config,
44
};
55

src/config/utils/get_diff_rename.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{get_string, ConfigError, ConfigErrorCause},
2+
config::{ConfigError, ConfigErrorCause, get_string},
33
git::Config,
44
};
55

src/config/utils/get_diff_show_whitespace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{get_string, ConfigError, ConfigErrorCause, DiffShowWhitespaceSetting},
2+
config::{ConfigError, ConfigErrorCause, DiffShowWhitespaceSetting, get_string},
33
git::Config,
44
};
55

src/config/utils/get_input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
config::{utils::get_string, ConfigError, ConfigErrorCause},
2+
config::{ConfigError, ConfigErrorCause, utils::get_string},
33
git::Config,
44
};
55

0 commit comments

Comments
 (0)