Skip to content

Commit 3d1a751

Browse files
committed
Bump MSRV to 1.74.0
In line with `rust-bitcoin` bump to Rust 1.74.0 Note that other major projects in the Rust Bitcoin eccosystem have or will, bump to 1.85.0 (in Debian Stable). The reason I've done this PR is because I'd like to re-write CI in line with `rust-bitcoin` and bumping the MSRV is easier than debugging the MSRV job.
1 parent b7fab3a commit 3d1a751

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ readme = "README.md"
99
keywords = ["base32", "encoding", "bech32", "bitcoin", "cryptocurrency"]
1010
categories = ["encoding", "cryptography::cryptocurrencies"]
1111
license = "MIT"
12-
edition = "2018"
12+
edition = "2021"
13+
rust-version = "1.74.0"
1314

1415
[features]
1516
default = ["std"]

clippy.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/primitives/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ where
155155
/// The number of fes encoded by n bytes, rounded up because we pad the fes.
156156
fn bytes_len_to_fes_len(bytes: usize) -> usize {
157157
let bits = bytes * 8;
158-
(bits + 4) / 5
158+
bits.div_ceil(5)
159159
}
160160

161161
impl<I> ExactSizeIterator for BytesToFes<I>

0 commit comments

Comments
 (0)