File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,7 @@ sha2 = ["dep:sha2"]
1818[dependencies ]
1919solana-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 ]
2822solana-define-syscall = { workspace = true }
2923
3024[dev-dependencies ]
Original file line number Diff line number Diff 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`.
You can’t perform that action at this time.
0 commit comments