aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/mod.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-13 00:50:54 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-13 00:50:54 +0200
commit6723829a3398b3c9dd6dc6ae79124f46000606ee (patch)
treea1ec535eddd711a4557e4bcc5b94382c3623504c /crates/turtle/src/command/mod.rs
parentchore(treewide): Cleanup themes (diff)
downloadatuin-6723829a3398b3c9dd6dc6ae79124f46000606ee.zip
chore(treewide): Remove `cargo` warnings to 0
There are still the `clippy` warnings, but they are for a future date.
Diffstat (limited to 'crates/turtle/src/command/mod.rs')
-rw-r--r--crates/turtle/src/command/mod.rs12
1 files changed, 7 insertions, 5 deletions
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<crate::atuin_pty_proxy::CommandCapt
});
Some(Box::new(move |capture| {
- let _ = tx.try_send(capture);
+ drop(tx.try_send(capture));
}))
}
-#[cfg(all(feature = "daemon", feature = "pty-proxy", unix))]
+#[cfg(unix)]
#[inline]
fn is_truthy_env(name: &str) -> 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<crate::atuin_pty_proxy::CommandCapture>,
) {
+ 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);
}
}