Skip to content

Commit b0fa645

Browse files
authored
Merge pull request #1039 from mulkieran/lowest-supported-1.87.0
Increase lowest supported rust toolchain to 1.87.0
2 parents 01c076b + 9aff050 commit b0fa645

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["os::linux-apis", "api-bindings"]
1010
keywords = ["Linux", "device", "mapper", "libdm", "storage"]
1111
license = "MPL-2.0"
1212
edition = "2021"
13-
rust-version = "1.85.0" # LOWEST SUPPORTED RUST TOOLCHAIN
13+
rust-version = "1.87.0" # LOWEST SUPPORTED RUST TOOLCHAIN
1414
exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]
1515

1616
[dependencies.bitflags]

‎devicemapper-rs-sys/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "devicemapper-sys"
33
version = "0.3.3"
44
authors = ["Stratis Developers <stratis-devel@lists.fedorahosted.org>"]
55
edition = "2021"
6-
rust-version = "1.85.0" # LOWEST SUPPORTED RUST TOOLCHAIN
6+
rust-version = "1.87.0" # LOWEST SUPPORTED RUST TOOLCHAIN
77
description = "Low level bindings for devicemapper"
88
license = "MPL-2.0"
99
documentation = "https://docs.rs/devicemapper-rs-sys"

‎src/cachedev.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ impl CacheDev {
724724
/// Parse pairs of arguments from a slice
725725
fn parse_pairs(start_index: usize, vals: &[&str]) -> DmResult<(usize, Vec<(String, String)>)> {
726726
let num_pairs: usize = parse_value(vals[start_index], "number of pairs")?;
727-
if num_pairs % 2 != 0 {
727+
if !num_pairs.is_multiple_of(2) {
728728
let err_msg = format!("Number of args \"{num_pairs}\" is not even");
729729
return Err(DmError::Dm(ErrorEnum::Invalid, err_msg));
730730
}

0 commit comments

Comments
 (0)