aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-01-26 12:07:55 -0800
committerGitHub <noreply@github.com>2026-01-26 12:07:55 -0800
commite8fe331587d288a35470ef5fcaf852aa706502ef (patch)
treeab1b7474595f3bd8e551c45fa7057136b2788e61 /crates
parentchore(deps): bump lukemathwalker/cargo-chef from latest-rust-1.92.0-slim-book... (diff)
parentclippy clappy (diff)
downloadatuin-e8fe331587d288a35470ef5fcaf852aa706502ef.zip
chore: update to rust 1.93 (#3101)
<!-- Thank you for making a PR! Bug fixes are always welcome, but if you're adding a new feature or changing an existing one, we'd really appreciate if you open an issue, post on the forum, or drop in on Discord --> ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates')
-rw-r--r--crates/atuin/src/command/client/search.rs25
1 files changed, 11 insertions, 14 deletions
diff --git a/crates/atuin/src/command/client/search.rs b/crates/atuin/src/command/client/search.rs
index be00ee99..ceeb9436 100644
--- a/crates/atuin/src/command/client/search.rs
+++ b/crates/atuin/src/command/client/search.rs
@@ -150,20 +150,17 @@ impl Cmd {
store: SqliteStore,
theme: &Theme,
) -> Result<()> {
- let query = self.query.map_or_else(
- || {
- std::env::var("ATUIN_QUERY").map_or_else(
- |_| vec![],
- |query| {
- query
- .split(' ')
- .map(std::string::ToString::to_string)
- .collect()
- },
- )
- },
- |query| query,
- );
+ let query = self.query.unwrap_or_else(|| {
+ std::env::var("ATUIN_QUERY").map_or_else(
+ |_| vec![],
+ |query| {
+ query
+ .split(' ')
+ .map(std::string::ToString::to_string)
+ .collect()
+ },
+ )
+ });
if (self.delete_it_all || self.delete) && self.limit.is_some() {
// Because of how deletion is implemented, it will always delete all matches