aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/record
diff options
context:
space:
mode:
authorRay Kohler <ataraxia937@ataraxia937.xyz>2025-08-11 16:30:31 -0400
committerEllie Huxtable <ellie@elliehuxtable.com>2025-09-10 12:57:43 -0700
commit5af3cd2670c2312ce6821a149ed70ebd1bdf5d01 (patch)
treec1ba04b254968d981428b26dfd2f39cdb8b102f8 /crates/atuin-client/src/record
parentchore(deps): bump lukemathwalker/cargo-chef from latest-rust-1.88.0-slim-book... (diff)
downloadatuin-5af3cd2670c2312ce6821a149ed70ebd1bdf5d01.zip
fix: clean up new rustc and clippy warnings on Rust 1.89
Diffstat (limited to 'crates/atuin-client/src/record')
-rw-r--r--crates/atuin-client/src/record/sqlite_store.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/atuin-client/src/record/sqlite_store.rs b/crates/atuin-client/src/record/sqlite_store.rs
index a3e7228b..03b5e448 100644
--- a/crates/atuin-client/src/record/sqlite_store.rs
+++ b/crates/atuin-client/src/record/sqlite_store.rs
@@ -41,11 +41,10 @@ impl SqliteStore {
std::process::exit(1);
}
- if !path.exists() {
- if let Some(dir) = path.parent() {
+ if !path.exists()
+ && let Some(dir) = path.parent() {
fs::create_dir_all(dir)?;
}
- }
let opts = SqliteConnectOptions::from_str(path.as_os_str().to_str().unwrap())?
.journal_mode(SqliteJournalMode::Wal)