From 3abc96fafe052f3c68ac7d1ae18e4fafee8e1f34 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 6 Feb 2023 12:59:01 +0100 Subject: Try to make clippy happy 🥺 (#686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Try to make clippy happy 🥺 * Fmt * I missed one (can't run clippy locally on airport wifi...) --- atuin-client/src/settings.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'atuin-client/src/settings.rs') diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 379237c6..3cefe1cb 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -262,9 +262,8 @@ impl Settings { let data_dir = atuin_common::utils::data_dir(); create_dir_all(&config_dir) - .wrap_err_with(|| format!("could not create dir {:?}", config_dir))?; - create_dir_all(&data_dir) - .wrap_err_with(|| format!("could not create dir {:?}", data_dir))?; + .wrap_err_with(|| format!("could not create dir {config_dir:?}"))?; + create_dir_all(&data_dir).wrap_err_with(|| format!("could not create dir {data_dir:?}"))?; let mut config_file = if let Ok(p) = std::env::var("ATUIN_CONFIG_DIR") { PathBuf::from(p) -- cgit v1.3.1