aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/atuin_client/history
diff options
context:
space:
mode:
Diffstat (limited to 'crates/turtle/src/atuin_client/history')
-rw-r--r--crates/turtle/src/atuin_client/history/builder.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/turtle/src/atuin_client/history/builder.rs b/crates/turtle/src/atuin_client/history/builder.rs
index 50a9d2af..daa4ef49 100644
--- a/crates/turtle/src/atuin_client/history/builder.rs
+++ b/crates/turtle/src/atuin_client/history/builder.rs
@@ -28,7 +28,7 @@ pub(crate) struct HistoryImported {
impl From<HistoryImported> for History {
fn from(imported: HistoryImported) -> Self {
- History::new(
+ Self::new(
imported.timestamp,
imported.command,
imported.cwd,
@@ -63,7 +63,7 @@ pub(crate) struct HistoryCaptured {
impl From<HistoryCaptured> for History {
fn from(captured: HistoryCaptured) -> Self {
- History::new(
+ Self::new(
captured.timestamp,
captured.command,
captured.cwd,
@@ -98,7 +98,7 @@ pub(crate) struct HistoryFromDb {
impl From<HistoryFromDb> for History {
fn from(from_db: HistoryFromDb) -> Self {
- History {
+ Self {
id: from_db.id.into(),
timestamp: from_db.timestamp,
exit: from_db.exit,
@@ -117,7 +117,7 @@ impl From<HistoryFromDb> for History {
/// Builder for a history entry that is captured via hook and sent to the daemon
///
/// This builder is similar to Capture, but we just require more information up front.
-/// For the old setup, we could just rely on History::new to read some of the missing
+/// For the old setup, we could just rely on `History::new` to read some of the missing
/// data. This is no longer the case.
#[derive(Debug, Clone, TypedBuilder)]
pub(crate) struct HistoryDaemonCapture {
@@ -138,7 +138,7 @@ pub(crate) struct HistoryDaemonCapture {
impl From<HistoryDaemonCapture> for History {
fn from(captured: HistoryDaemonCapture) -> Self {
- History::new(
+ Self::new(
captured.timestamp,
captured.command,
captured.cwd,