Skip to content

Commit 9387241

Browse files
bartlomiejuclaude
andcommitted
fix: make into_raw methods private to match private return types
pub(crate) still triggers private_interfaces lint since the return types (RawSerializable, DispatchResponseWrapper) are module-private. These methods are only used within crdtp.rs, so make them fully private. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a676dd7 commit 9387241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crdtp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl Serializable {
182182
}
183183
}
184184

185-
pub(crate) fn into_raw(self) -> *mut RawSerializable {
185+
fn into_raw(self) -> *mut RawSerializable {
186186
let ptr = self.ptr;
187187
std::mem::forget(self);
188188
ptr
@@ -361,7 +361,7 @@ impl DispatchResponse {
361361
}
362362
}
363363

364-
pub(crate) fn into_raw(self) -> *mut DispatchResponseWrapper {
364+
fn into_raw(self) -> *mut DispatchResponseWrapper {
365365
let ptr = self.ptr;
366366
std::mem::forget(self);
367367
ptr

0 commit comments

Comments
 (0)