Skip to content

Commit

Permalink
lower MSRV to 1.66 (#676)
Browse files Browse the repository at this point in the history
* lower MSRV to 1.66

matches Debian 13 distributed Rust

* remove unnecessary borrows in bitmap.rs
  • Loading branch information
devrandom authored Sep 6, 2023
1 parent e5798e7 commit be81170
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- uses: actions-rs/toolchain@v1
with:
toolchain: 1.67
toolchain: 1.66
components: rustfmt, clippy
default: true

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
license = "MIT OR Apache-2.0"
version = "1.1.0"
edition = "2021"
rust-version = "1.67"
rust-version = "1.66"
authors = ["Christopher Berner <[email protected]>"]
exclude = ["fuzz/"]

Expand Down
6 changes: 3 additions & 3 deletions src/tree_store/page_store/bitmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl BtreeBitmap {
pub(crate) fn to_vec(&self) -> Vec<u8> {
let mut result = vec![];
let height: u32 = self.heights.len().try_into().unwrap();
result.extend(&height.to_le_bytes());
result.extend(height.to_le_bytes());

let vecs: Vec<Vec<u8>> = self.heights.iter().map(|x| x.to_vec()).collect();
let mut data_offset = END_OFFSETS + self.heights.len() * size_of::<u32>();
Expand Down Expand Up @@ -302,9 +302,9 @@ impl U64GroupedBitmap {
// n bytes: serialized groups
pub fn to_vec(&self) -> Vec<u8> {
let mut result = vec![];
result.extend(&self.len.to_le_bytes());
result.extend(self.len.to_le_bytes());
for x in self.data.iter() {
result.extend(&x.to_le_bytes());
result.extend(x.to_le_bytes());
}
result
}
Expand Down

0 comments on commit be81170

Please sign in to comment.