We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05402db + 6a26782 commit cf05085Copy full SHA for cf05085
1 file changed
src/state/context.rs
@@ -10,7 +10,7 @@ use libbitcoinkernel_sys::{
10
};
11
12
use crate::{
13
- ffi::c_helpers,
+ ffi::{c_helpers, sealed::AsPtr},
14
notifications::{
15
notification::{
16
notification_block_tip_wrapper, notification_fatal_error_wrapper,
@@ -87,9 +87,11 @@ impl Context {
87
));
88
}
89
90
+}
91
- pub fn as_ptr(&self) -> *mut btck_Context {
92
- self.inner
+impl AsPtr<btck_Context> for Context {
93
+ fn as_ptr(&self) -> *const btck_Context {
94
+ self.inner as *const _
95
96
97
0 commit comments