diff options
| author | Ray Kohler <ataraxia937@ataraxia937.xyz> | 2025-08-11 16:30:31 -0400 |
|---|---|---|
| committer | Ellie Huxtable <ellie@elliehuxtable.com> | 2025-09-10 12:57:43 -0700 |
| commit | 5af3cd2670c2312ce6821a149ed70ebd1bdf5d01 (patch) | |
| tree | c1ba04b254968d981428b26dfd2f39cdb8b102f8 /crates/atuin-client/src/import/xonsh.rs | |
| parent | chore(deps): bump lukemathwalker/cargo-chef from latest-rust-1.88.0-slim-book... (diff) | |
| download | atuin-5af3cd2670c2312ce6821a149ed70ebd1bdf5d01.zip | |
fix: clean up new rustc and clippy warnings on Rust 1.89
Diffstat (limited to 'crates/atuin-client/src/import/xonsh.rs')
| -rw-r--r-- | crates/atuin-client/src/import/xonsh.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/atuin-client/src/import/xonsh.rs b/crates/atuin-client/src/import/xonsh.rs index 201cad15..a9e6449d 100644 --- a/crates/atuin-client/src/import/xonsh.rs +++ b/crates/atuin-client/src/import/xonsh.rs @@ -66,11 +66,10 @@ fn load_sessions(hist_dir: &Path) -> Result<Vec<HistoryData>> { for entry in fs::read_dir(hist_dir)? { let p = entry?.path(); let ext = p.extension().and_then(|e| e.to_str()); - if p.is_file() && ext == Some("json") { - if let Some(data) = load_session(&p)? { + if p.is_file() && ext == Some("json") + && let Some(data) = load_session(&p)? { sessions.push(data); } - } } Ok(sessions) } |
