From 6723829a3398b3c9dd6dc6ae79124f46000606ee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 00:50:54 +0200 Subject: chore(treewide): Remove `cargo` warnings to 0 There are still the `clippy` warnings, but they are for a future date. --- crates/turtle/src/command/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crates/turtle/src/command/mod.rs') diff --git a/crates/turtle/src/command/mod.rs b/crates/turtle/src/command/mod.rs index 78de2d03..9a648254 100644 --- a/crates/turtle/src/command/mod.rs +++ b/crates/turtle/src/command/mod.rs @@ -101,11 +101,11 @@ fn semantic_command_capture_sink() -> Option bool { std::env::var(name) @@ -114,14 +114,16 @@ fn is_truthy_env(name: &str) -> bool { .is_some_and(|value| !value.trim().is_empty() && value.trim() != "false") } -#[cfg(all(feature = "daemon", feature = "pty-proxy", unix))] +#[cfg(unix)] async fn send_semantic_command_captures( settings: &crate::atuin_client::settings::Settings, batch: Vec, ) { + use crate::atuin_daemon::generated; + let captures = batch .into_iter() - .map(|capture| crate::atuin_daemon::semantic::CommandCapture { + .map(|capture| generated::semantic::CommandCapture { prompt: capture.prompt, command: capture.command, output: capture.output, @@ -134,6 +136,6 @@ async fn send_semantic_command_captures( .collect(); if let Ok(mut client) = crate::atuin_daemon::SemanticClient::from_settings(settings).await { - let _ = client.record_commands(captures).await; + drop(client.record_commands(captures).await); } } -- cgit v1.3.1