From 2cb81e381166bc420e1085b237f720b6548faccd Mon Sep 17 00:00:00 2001 From: Artyom Pavlov Date: Tue, 21 Jul 2020 16:01:27 +0300 Subject: [PATCH] Fix MSRV tests (#72) --- .github/workflows/blobby.yml | 2 +- .github/workflows/cpuid-bool.yml | 2 +- Cargo.lock | 4 ++-- blobby/examples/convert.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blobby.yml b/.github/workflows/blobby.yml index 4969b7a0..2834a42f 100644 --- a/.github/workflows/blobby.yml +++ b/.github/workflows/blobby.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: rust: - - 1.36.0 # MSRV + - 1.39.0 # MSRV - stable steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/cpuid-bool.yml b/.github/workflows/cpuid-bool.yml index 75d3913d..eed4ef14 100644 --- a/.github/workflows/cpuid-bool.yml +++ b/.github/workflows/cpuid-bool.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: rust: - - 1.32.0 # MSRV + - 1.39.0 # MSRV - stable steps: - uses: actions/checkout@v1 diff --git a/Cargo.lock b/Cargo.lock index 00ff1d6d..d96d9ba5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,9 +36,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.2" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac746a5f3bbfdadd6106868134545e684693d54d9d44f6e9588a7d54af0bf980" +checksum = "60fb4bb6bba52f78a471264d9a3b7d026cc0af47b22cd2cffbc0b787ca003e63" dependencies = [ "typenum", "version_check", diff --git a/blobby/examples/convert.rs b/blobby/examples/convert.rs index 85f973ac..35039585 100644 --- a/blobby/examples/convert.rs +++ b/blobby/examples/convert.rs @@ -71,7 +71,7 @@ fn encode(reader: impl BufRead, mut writer: impl Write) -> io::Result { for blob in blobs.iter() { if let Some(dup_pos) = rev_idx.get(blob.as_slice()) { - let n = (dup_pos << 1) + 1; + let n = (dup_pos << 1) + 1usize; writer.write_all(encode_vlq(n, &mut buf))?; } else { let n = blob.len() << 1;