Skip to content

Commit 58e46f2

Browse files
committed
fix
1 parent 217de14 commit 58e46f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ repository = "https://github.com/DoubleHyphen/lindel"
1818
all-features = true
1919

2020
[dependencies]
21-
num = {version = "0.2"}
22-
num-traits = {version = "0.2"}
21+
num = "0.4"
22+
num-traits = "0.2"
2323
nalgebra = {version = "0.25", optional = true}
2424

2525
[dev-dependencies]

src/new_uints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ macro_rules! create_lineariseable_data_type {
418418
for single_bit_mask in (1..bits).map(|i| coor_one << i) {
419419
// We go from LSB to MSB
420420

421-
let current_bit_is_set = |x: $coor| x & single_bit_mask != 0u8.into();
421+
let current_bit_is_set = |x: $coor| x & single_bit_mask != 0;
422422

423423
let less_significant_bit_mask: $coor = single_bit_mask - coor_one;
424424

0 commit comments

Comments
 (0)