From 45b7b7ae6fa07636b1a6c0f3b5b096d332c165be Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Mon, 18 Apr 2022 22:44:01 +0200 Subject: [PATCH] rustfmt --- src/adapters/postproc.rs | 16 +++++++++++----- src/preproc_cache.rs | 4 +++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/adapters/postproc.rs b/src/adapters/postproc.rs index 0048200..7164ee7 100644 --- a/src/adapters/postproc.rs +++ b/src/adapters/postproc.rs @@ -158,7 +158,10 @@ impl Read for ReadErr { } }*/ -pub fn postproc_encoding<'a, R: Read+'a>(line_prefix: &str, inp: R) -> Result> { +pub fn postproc_encoding<'a, R: Read + 'a>( + line_prefix: &str, + inp: R, +) -> Result> { // TODO: parse these options from ripgrep's configuration let encoding = None; // detect bom but usually assume utf8 let bom_sniffing = true; @@ -184,9 +187,7 @@ pub fn postproc_encoding<'a, R: Read+'a>(line_prefix: &str, inp: R) -> Result Result>>> { +fn open_cache_db( + path: &Path, +) -> Result>>> { std::fs::create_dir_all(path)?; use rkv::backend::LmdbEnvironmentFlags;