Skip to content

Commit a8a72eb

Browse files
committed
Tweaks
1 parent 0d07975 commit a8a72eb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

sha256-hasher/Cargo.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ sha2 = ["dep:sha2"]
1818
[dependencies]
1919
solana-hash = { workspace = true }
2020

21-
[target.'cfg(not(target_os = "solana"))'.dependencies]
22-
sha2 = { workspace = true, optional = true }
23-
24-
[target.'cfg(target_arch = "bpf")'.dependencies]
25-
solana-define-syscall = { workspace = true }
26-
27-
[target.'cfg(target_os = "solana")'.dependencies]
21+
[target.'cfg(any(target_os = "solana", target_arch = "bpf"))'.dependencies]
2822
solana-define-syscall = { workspace = true }
2923

3024
[dev-dependencies]

sha256-hasher/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn hashv(vals: &[&[u8]]) -> Hash {
5555
sol_sha256(
5656
vals as *const _ as *const u8,
5757
vals.len() as u64,
58-
&mut hash_result as *mut _ as *mut u8,
58+
hash_result.as_mut_ptr() as *mut u8,
5959
);
6060
}
6161
// SAFETY: the syscall initializes the `hash_result`.

0 commit comments

Comments
 (0)