Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ categories = ["os::linux-apis", "api-bindings"]
keywords = ["Linux", "device", "mapper", "libdm", "storage"]
license = "MPL-2.0"
edition = "2021"
rust-version = "1.85.0" # LOWEST SUPPORTED RUST TOOLCHAIN
rust-version = "1.87.0" # LOWEST SUPPORTED RUST TOOLCHAIN
exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]

[dependencies.bitflags]
Expand Down
2 changes: 1 addition & 1 deletion devicemapper-rs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "devicemapper-sys"
version = "0.3.3"
authors = ["Stratis Developers <stratis-devel@lists.fedorahosted.org>"]
edition = "2021"
rust-version = "1.85.0" # LOWEST SUPPORTED RUST TOOLCHAIN
rust-version = "1.87.0" # LOWEST SUPPORTED RUST TOOLCHAIN
description = "Low level bindings for devicemapper"
license = "MPL-2.0"
documentation = "https://docs.rs/devicemapper-rs-sys"
Expand Down
2 changes: 1 addition & 1 deletion src/cachedev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ impl CacheDev {
/// Parse pairs of arguments from a slice
fn parse_pairs(start_index: usize, vals: &[&str]) -> DmResult<(usize, Vec<(String, String)>)> {
let num_pairs: usize = parse_value(vals[start_index], "number of pairs")?;
if num_pairs % 2 != 0 {
if !num_pairs.is_multiple_of(2) {
let err_msg = format!("Number of args \"{num_pairs}\" is not even");
return Err(DmError::Dm(ErrorEnum::Invalid, err_msg));
}
Expand Down
Loading