Skip to content

Commit df040ea

Browse files
committed
Work around rust < 1.78 crash
Somehow the DWARF info generated by the compiler for the `hash`-replacement assignment is confusing to LLVM, which crashes. By using a different form for the same operation, the compiler is happy.
1 parent 543b050 commit df040ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mls-rs/src/tree_kem/parent_hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl TreeKemPublic {
135135
)
136136
.await?;
137137

138-
(parent.parent_hash, hash) = (hash, calculated);
138+
parent.parent_hash = std::mem::replace(&mut hash, calculated);
139139
}
140140

141141
Ok(hash)

0 commit comments

Comments
 (0)