Skip to content

Commit 7f64c89

Browse files
committed
chore: Enable rust-2024-compatibility lints
Accept the new rules for the `expr` fragment specifier in declarative macros.
1 parent 9a410e2 commit 7f64c89

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

twenty-first/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ serde_json = "1.0"
5353
sha3 = "^0.10.8"
5454
thiserror = "2.0"
5555

56+
[lints.rust]
57+
edition-2024-expr-fragment-specifier = "allow" # accept the new `expr` fragment specifier rules
58+
rust-2024-compatibility = "warn"
59+
5660
[[bench]]
5761
name = "tip5"
5862
harness = false

twenty-first/src/math/zerofier_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mod test {
122122
points: Vec<BFieldElement>,
123123
) {
124124
let zerofier_tree = ZerofierTree::new_from_domain(&points);
125-
let ZerofierTree::Branch(ref branch) = &zerofier_tree else {
125+
let ZerofierTree::Branch(ref branch) = zerofier_tree else {
126126
panic!("not enough leafs");
127127
};
128128
prop_assert_eq!(

twenty-first/src/util_types/merkle_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl MerkleTree {
187187
fn authentication_structure_node_indices(
188188
num_leafs: usize,
189189
leaf_indices: &[usize],
190-
) -> Result<impl ExactSizeIterator<Item = usize>> {
190+
) -> Result<impl ExactSizeIterator<Item = usize> + use<>> {
191191
// The set of indices of nodes that need to be included in the authentications
192192
// structure. In principle, every node of every authentication path is needed.
193193
// The root is never needed. Hence, it is not considered below.

0 commit comments

Comments
 (0)