From 47b76481e51451827530714512b30882d85e3a9a Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 13 Jun 2026 01:36:41 +0200 Subject: chore(treewide): Also fix all `clippy` warnings --- crates/turtle/src/atuin_client/settings.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crates/turtle/src/atuin_client/settings.rs') diff --git a/crates/turtle/src/atuin_client/settings.rs b/crates/turtle/src/atuin_client/settings.rs index bfb8d001..c02221eb 100644 --- a/crates/turtle/src/atuin_client/settings.rs +++ b/crates/turtle/src/atuin_client/settings.rs @@ -62,9 +62,7 @@ impl SearchMode { // if the user is using skim, we go to skim Self::FullText if settings.search_mode == Self::Skim => Self::Skim, // if the user is using daemon-fuzzy, we go to daemon-fuzzy - Self::FullText if settings.search_mode == Self::DaemonFuzzy => { - Self::DaemonFuzzy - } + Self::FullText if settings.search_mode == Self::DaemonFuzzy => Self::DaemonFuzzy, // otherwise fuzzy. Self::FullText => Self::Fuzzy, Self::Fuzzy | Self::Skim | Self::DaemonFuzzy => Self::Prefix, @@ -845,6 +843,7 @@ impl Sync { } pub(crate) fn encryption_key(&self) -> Result> { Self::try_read_file(self.encryption_key_path.as_ref())? + .as_deref() .map(decode_key) .transpose() } -- cgit v1.3.1