diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1b6f3f..71d4082 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,14 +22,15 @@ jobs: strategy: matrix: build: + - stable - nightly - nightly-musl - nightly-arm - macos include: - #- build: stable - # os: ubuntu-18.04 - # rust: stable + - build: stable + os: ubuntu-18.04 + rust: stable - build: nightly os: ubuntu-18.04 rust: nightly 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;