Run code through cargo fmt.

This commit is contained in:
Sergiu Puscas
2021-04-05 18:41:44 +02:00
parent 6ec46827e7
commit 83fed44db0
2 changed files with 5 additions and 2 deletions

View File

@@ -8,10 +8,10 @@ use std::time::Duration;
use itertools::Itertools;
use hyper::body::Buf;
use hyper::header::{HeaderMap, AUTHORIZATION, CONTENT_LENGTH, CONTENT_TYPE, USER_AGENT};
use hyper::Method;
use hyper::StatusCode;
use hyper::body::Buf;
use mime::{Attr, Mime, SubLevel, TopLevel, Value};

View File

@@ -653,7 +653,10 @@ pub fn assure_config_dir_exists(dir: &str) -> Result<String, CLIError> {
}
let expanded_config_dir = if trdir.as_bytes()[0] == b'~' {
match env::var("HOME").ok().or_else(|| env::var("UserProfile").ok()) {
match env::var("HOME")
.ok()
.or_else(|| env::var("UserProfile").ok())
{
None => {
return Err(CLIError::Configuration(
ConfigurationError::HomeExpansionFailed(trdir.to_string()),