aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:28:10 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:28:10 +0200
commitb4011176cc4b68aed77a6946610a3dcf3b938e95 (patch)
tree65120528263f2330b06829fecf2c4a76052069c7 /crates/atuin-client
parentchore: Remove more useless code (diff)
downloadatuin-b4011176cc4b68aed77a6946610a3dcf3b938e95.zip
chore: Turn all `allow`s into into `expect`s
Diffstat (limited to 'crates/atuin-client')
-rw-r--r--crates/atuin-client/src/database.rs2
-rw-r--r--crates/atuin-client/src/history.rs2
-rw-r--r--crates/atuin-client/src/import/resh.rs8
-rw-r--r--crates/atuin-client/src/import/zsh_histdb.rs2
-rw-r--r--crates/atuin-client/src/record/encryption.rs2
5 files changed, 8 insertions, 8 deletions
diff --git a/crates/atuin-client/src/database.rs b/crates/atuin-client/src/database.rs
index 75ef51c3..946c1eb0 100644
--- a/crates/atuin-client/src/database.rs
+++ b/crates/atuin-client/src/database.rs
@@ -159,7 +159,7 @@ pub trait Database: Send + Sync + 'static {
// Yes I know, it's a lot.
// Could maybe break it down to a searchparams struct or smth but that feels a little... pointless.
// Been debating maybe a DSL for search? eg "before:time limit:1 the query"
- #[allow(clippy::too_many_arguments)]
+ #[expect(clippy::too_many_arguments)]
async fn search(
&self,
search_mode: SearchMode,
diff --git a/crates/atuin-client/src/history.rs b/crates/atuin-client/src/history.rs
index 16f7d85a..aa0d84d5 100644
--- a/crates/atuin-client/src/history.rs
+++ b/crates/atuin-client/src/history.rs
@@ -139,7 +139,7 @@ impl History {
})
}
- #[allow(clippy::too_many_arguments)]
+ #[expect(clippy::too_many_arguments)]
fn new(
timestamp: OffsetDateTime,
command: String,
diff --git a/crates/atuin-client/src/import/resh.rs b/crates/atuin-client/src/import/resh.rs
index de02d041..df15f5b4 100644
--- a/crates/atuin-client/src/import/resh.rs
+++ b/crates/atuin-client/src/import/resh.rs
@@ -104,15 +104,15 @@ impl Importer for Resh {
Err(_) => continue, // skip invalid json :shrug:
};
- #[allow(clippy::cast_possible_truncation)]
- #[allow(clippy::cast_sign_loss)]
+ #[expect(clippy::cast_possible_truncation)]
+ #[expect(clippy::cast_sign_loss)]
let timestamp = {
let secs = entry.realtime_before.floor() as i64;
let nanosecs = (entry.realtime_before.fract() * 1_000_000_000_f64).round() as i64;
OffsetDateTime::from_unix_timestamp(secs)? + time::Duration::nanoseconds(nanosecs)
};
- #[allow(clippy::cast_possible_truncation)]
- #[allow(clippy::cast_sign_loss)]
+ #[expect(clippy::cast_possible_truncation)]
+ #[expect(clippy::cast_sign_loss)]
let duration = {
let secs = entry.realtime_after.floor() as i64;
let nanosecs = (entry.realtime_after.fract() * 1_000_000_000_f64).round() as i64;
diff --git a/crates/atuin-client/src/import/zsh_histdb.rs b/crates/atuin-client/src/import/zsh_histdb.rs
index cac85566..bf44c3ad 100644
--- a/crates/atuin-client/src/import/zsh_histdb.rs
+++ b/crates/atuin-client/src/import/zsh_histdb.rs
@@ -178,7 +178,7 @@ mod test {
use sqlx::sqlite::SqlitePoolOptions;
use std::env;
#[tokio::test(flavor = "multi_thread")]
- #[allow(unsafe_code)]
+ #[expect(unsafe_code)]
async fn test_env_vars() {
let test_env_db = "nonstd-zsh-history.db";
let key = "HISTDB_FILE";
diff --git a/crates/atuin-client/src/record/encryption.rs b/crates/atuin-client/src/record/encryption.rs
index 176d75f5..1e94d967 100644
--- a/crates/atuin-client/src/record/encryption.rs
+++ b/crates/atuin-client/src/record/encryption.rs
@@ -10,7 +10,7 @@ use rusty_paseto::core::{
use serde::{Deserialize, Serialize};
/// Use PASETO V4 Local encryption using the additional data as an implicit assertion.
-#[allow(non_camel_case_types)]
+#[expect(non_camel_case_types)]
pub struct PASETO_V4;
/*