style: format code for better readability in tests and function signatures
Some checks failed
CI / test (push) Failing after 4m59s
CI / clippy (push) Failing after 4m58s
CI / fmt (push) Successful in 23s

This commit is contained in:
2026-03-18 13:59:53 +01:00
parent 3d2bd5f9fe
commit 2e773cdeaf
4 changed files with 23 additions and 18 deletions

View File

@@ -105,15 +105,14 @@ impl Plugin for ExternalPlugin {
}
let result = match guard.as_mut() {
Some(io) => tokio::time::timeout(
std::time::Duration::from_secs(5),
do_search(io, query),
)
.await
.unwrap_or_else(|_| {
tracing::warn!("plugin {} search timed out", self.name);
Err("timeout".into())
}),
Some(io) => {
tokio::time::timeout(std::time::Duration::from_secs(5), do_search(io, query))
.await
.unwrap_or_else(|_| {
tracing::warn!("plugin {} search timed out", self.name);
Err("timeout".into())
})
}
None => unreachable!(),
};