diff options
author | Conrad Ludgate <conrad.ludgate@truelayer.com> | 2022-04-21 08:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 08:05:57 +0100 |
commit | 48747e3b7c542c696003f71ef4b4ae457934e57c (patch) | |
tree | 0bbde7136b84cda46cdb758d2cbeda67ca436ee8 /atuin-client/src/database.rs | |
parent | ed4e07d2e63af1584a262037781729a5144a5502 (diff) |
A few minor tweaks (#314)
* use bail macro
replace client database errors
remove dead code
* fix test
Diffstat (limited to 'atuin-client/src/database.rs')
-rw-r--r-- | atuin-client/src/database.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs index 8b950de99..9efde2cd8 100644 --- a/atuin-client/src/database.rs +++ b/atuin-client/src/database.rs @@ -5,15 +5,14 @@ use async_trait::async_trait; use chrono::prelude::*; use chrono::Utc; -use eyre::Result; use itertools::Itertools; use regex::Regex; use fs_err as fs; -use sqlx::sqlite::{ - SqliteConnectOptions, SqliteJournalMode, SqlitePool, SqlitePoolOptions, SqliteRow, +use sqlx::{ + sqlite::{SqliteConnectOptions, SqliteJournalMode, SqlitePool, SqlitePoolOptions, SqliteRow}, + Result, Row, }; -use sqlx::Row; use super::history::History; use super::ordering; |