diff options
Diffstat (limited to 'crates/atuin-daemon')
| -rw-r--r-- | crates/atuin-daemon/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/atuin-daemon/src/client.rs | 2 | ||||
| -rw-r--r-- | crates/atuin-daemon/src/server.rs | 8 | ||||
| -rw-r--r-- | crates/atuin-daemon/src/server/sync.rs | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/crates/atuin-daemon/Cargo.toml b/crates/atuin-daemon/Cargo.toml index ad204fe1..3b70b671 100644 --- a/crates/atuin-daemon/Cargo.toml +++ b/crates/atuin-daemon/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atuin-daemon" -edition = "2021" +edition = "2024" version = { workspace = true } description = "The daemon crate for Atuin" diff --git a/crates/atuin-daemon/src/client.rs b/crates/atuin-daemon/src/client.rs index 110fd01a..72272c01 100644 --- a/crates/atuin-daemon/src/client.rs +++ b/crates/atuin-daemon/src/client.rs @@ -12,7 +12,7 @@ use tokio::net::UnixStream; use atuin_client::history::History; use crate::history::{ - history_client::HistoryClient as HistoryServiceClient, EndHistoryRequest, StartHistoryRequest, + EndHistoryRequest, StartHistoryRequest, history_client::HistoryClient as HistoryServiceClient, }; pub struct HistoryClient { diff --git a/crates/atuin-daemon/src/server.rs b/crates/atuin-daemon/src/server.rs index c9f97a65..efed0ee3 100644 --- a/crates/atuin-daemon/src/server.rs +++ b/crates/atuin-daemon/src/server.rs @@ -7,13 +7,13 @@ use atuin_client::settings::Settings; use std::path::PathBuf; use std::sync::Arc; use time::OffsetDateTime; -use tracing::{instrument, Level}; +use tracing::{Level, instrument}; use atuin_client::database::{Database, Sqlite as HistoryDatabase}; use atuin_client::history::{History, HistoryId}; use dashmap::DashMap; use eyre::Result; -use tonic::{transport::Server, Request, Response, Status}; +use tonic::{Request, Response, Status, transport::Server}; use crate::history::history_server::{History as HistorySvc, HistoryServer}; @@ -194,7 +194,9 @@ async fn start_server(settings: Settings, history: HistoryService) -> Result<()> } } Err(err) => { - tracing::warn!("could not detect systemd socket path, ensure that it's at the configured path: {socket_path:?}, error: {err:?}"); + tracing::warn!( + "could not detect systemd socket path, ensure that it's at the configured path: {socket_path:?}, error: {err:?}" + ); } } (UnixListener::from_std(listener)?, false) diff --git a/crates/atuin-daemon/src/server/sync.rs b/crates/atuin-daemon/src/server/sync.rs index 0724a250..3aa5dec3 100644 --- a/crates/atuin-daemon/src/server/sync.rs +++ b/crates/atuin-daemon/src/server/sync.rs @@ -10,7 +10,7 @@ use atuin_client::{ settings::Settings, }; -use atuin_dotfiles::store::{var::VarStore, AliasStore}; +use atuin_dotfiles::store::{AliasStore, var::VarStore}; pub async fn worker( settings: Settings, |
