aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/search
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@elliehuxtable.com>2022-12-16 18:37:45 +0000
committerGitHub <noreply@github.com>2022-12-16 18:37:45 +0000
commit4c6a287f4d18161ed263bb37905edb2566f81245 (patch)
tree741c34c6fd700788b4d7b29a1b44a95d77cd9819 /src/command/client/search
parentFix session history (#620) (diff)
downloadatuin-4c6a287f4d18161ed263bb37905edb2566f81245.zip
Switch to using ATUIN_LOG instead of RUST_LOG (#642)
* Switch to using ATUIN_LOG instead of RUST_LOG * Stop clippy complaining * I should know better - clippy is never happy :(
Diffstat (limited to 'src/command/client/search')
-rw-r--r--src/command/client/search/duration.rs2
-rw-r--r--src/command/client/search/event.rs2
-rw-r--r--src/command/client/search/interactive.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/command/client/search/duration.rs b/src/command/client/search/duration.rs
index 3cdd4e83..1dc4245f 100644
--- a/src/command/client/search/duration.rs
+++ b/src/command/client/search/duration.rs
@@ -4,7 +4,7 @@ use std::{ops::ControlFlow, time::Duration};
pub fn format_duration(f: Duration) -> String {
fn item(name: &str, value: u64) -> ControlFlow<String> {
if value > 0 {
- ControlFlow::Break(format!("{}{}", value, name))
+ ControlFlow::Break(format!("{value}{name}"))
} else {
ControlFlow::Continue(())
}
diff --git a/src/command/client/search/event.rs b/src/command/client/search/event.rs
index 8044e278..0e791c96 100644
--- a/src/command/client/search/event.rs
+++ b/src/command/client/search/event.rs
@@ -43,7 +43,7 @@ impl Events {
let tty = termion::get_tty().expect("Could not find tty");
for event in tty.events().flatten() {
if let Err(err) = tx.send(Event::Input(event)) {
- eprintln!("{}", err);
+ eprintln!("{err}");
return;
}
}
diff --git a/src/command/client/search/interactive.rs b/src/command/client/search/interactive.rs
index e23b7c69..2bc07da3 100644
--- a/src/command/client/search/interactive.rs
+++ b/src/command/client/search/interactive.rs
@@ -256,7 +256,7 @@ impl State {
.split(chunks[0]);
let title = Paragraph::new(Text::from(Span::styled(
- format!("Atuin v{}", VERSION),
+ format!("Atuin v{VERSION}"),
Style::default().fg(Color::DarkGray),
)));