Skip to content

Commit 560b6c6

Browse files
committed
Fix msrv and dealloc
1 parent dfc2465 commit 560b6c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version = "1.0.0"
99
authors = ["Bitwarden Inc"]
1010
edition = "2021"
1111
# Important: Changing rust-version should be considered a breaking change
12-
rust-version = "1.75"
12+
rust-version = "1.80"
1313
homepage = "https://bitwarden.com"
1414
repository = "https://github.com/bitwarden/sdk-internal"
1515
license-file = "LICENSE"

crates/bitwarden-crypto/src/store/backend/implementation/custom_alloc/linux_memfd_secret.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unsafe impl Allocator for LinuxMemfdSecretAlloc {
5959
// This should never happen, but just in case, we free the memory and return an allocation
6060
// error.
6161
if (ptr.as_ptr() as *mut u8).align_offset(layout.align()) != 0 {
62-
unsafe { memsec::free_memfd_secret(ptr.as_ptr() as *mut u8) };
62+
unsafe { memsec::free_memfd_secret(ptr) };
6363
return Err(AllocError);
6464
}
6565

0 commit comments

Comments
 (0)