mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Run 'cargo fmt'
This commit is contained in:
parent
5eb93a6eae
commit
f5c1cb2dff
@ -18,8 +18,8 @@ impl BatProjectDirs {
|
|||||||
|
|
||||||
// Checks whether or not $BAT_CONFIG_DIR exists. If it doesn't, set our config dir
|
// Checks whether or not $BAT_CONFIG_DIR exists. If it doesn't, set our config dir
|
||||||
// to our system's default configuration home.
|
// to our system's default configuration home.
|
||||||
let config_dir = if let Some(config_dir_op) = env::var_os("BAT_CONFIG_DIR")
|
let config_dir =
|
||||||
.map(PathBuf::from) {
|
if let Some(config_dir_op) = env::var_os("BAT_CONFIG_DIR").map(PathBuf::from) {
|
||||||
config_dir_op
|
config_dir_op
|
||||||
} else {
|
} else {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
@ -755,10 +755,7 @@ fn config_location_from_bat_config_dir_variable() {
|
|||||||
.arg("--config-file")
|
.arg("--config-file")
|
||||||
.assert()
|
.assert()
|
||||||
.success()
|
.success()
|
||||||
.stdout(
|
.stdout(predicate::str::is_match("conf/config\n").unwrap());
|
||||||
predicate::str::is_match("conf/config\n")
|
|
||||||
.unwrap()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user