Skip to content

Commit 93c4be7

Browse files
committed
Impl Send and Sync for ScratchSpace
1 parent c7a3f74 commit 93c4be7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

secp256k1-zkp-sys/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ impl Drop for ScratchSpace {
7979
}
8080
}
8181

82+
unsafe impl Send for ScratchSpace {}
83+
unsafe impl Sync for ScratchSpace {}
84+
8285
/// Utility function used to parse hex into a target u8 buffer. Returns
8386
/// the number of bytes converted or an error if it encounters an invalid
8487
/// character or unexpected end of string.

0 commit comments

Comments
 (0)