Skip to content

Commit 6848340

Browse files
committed
Mark Boxed::into_raw as #[must_use]
1 parent f9f24ee commit 6848340

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/traits/boxed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub trait Boxed: Sized {
1414
///
1515
/// This will *not* free object referenced by this pointer, so you can use this pointer indefinitely. Be sure
1616
/// to free it (by e.g. calling `from_raw()` with the same wrapper type) to avoid leaking memory.
17+
#[must_use]
1718
fn into_raw(self) -> *mut c_void;
1819

1920
/// Return the underlying raw pointer.

0 commit comments

Comments
 (0)