From be0b78a0724e6a8578a0eef902689884397c52e6 Mon Sep 17 00:00:00 2001 From: phiresky Date: Sat, 5 Nov 2022 00:48:45 +0100 Subject: [PATCH] format --- src/preproc.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/preproc.rs b/src/preproc.rs index 3a77570..7320ba6 100644 --- a/src/preproc.rs +++ b/src/preproc.rs @@ -52,7 +52,12 @@ async fn choose_adapter( Ok(adapter.map(|e| (e.0, e.1, active_adapters))) } -async fn buf_choose_adapter(ai: AdaptInfo) -> Result<(AdaptInfo, Option<(Arc, FileMatcher, ActiveAdapters)>)> { +async fn buf_choose_adapter( + ai: AdaptInfo, +) -> Result<( + AdaptInfo, + Option<(Arc, FileMatcher, ActiveAdapters)>, +)> { let mut inp = BufReader::with_capacity(1 << 16, ai.inp); let adapter = choose_adapter( &ai.config, @@ -111,14 +116,9 @@ pub async fn rga_preproc(ai: AdaptInfo) -> Result { return handle_no_adapter(ai).map(|ai| ai.inp); }; let path_hint_copy = ai.filepath_hint.clone(); - adapt_caching( - ai, - adapter, - detection_reason, - active_adapters, - ) - .await - .with_context(|| format!("run_adapter({})", &path_hint_copy.to_string_lossy())) + adapt_caching(ai, adapter, detection_reason, active_adapters) + .await + .with_context(|| format!("run_adapter({})", &path_hint_copy.to_string_lossy())) } fn compute_cache_key(