Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed May 1, 2024
1 parent 52352c0 commit 52cf49a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/libs/core/src/handles.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Custom code to free a handle.
///
/// This is similar to the `Drop` trait, and may be used to implement `Drop`, but allows handles
/// This is similar to the [`Drop`] trait, and may be used to implement [`Drop`], but allows handles
/// to be dropped depending on context.
pub trait Free {
/// Calls the handle's free function.
Expand All @@ -10,9 +10,9 @@ pub trait Free {
unsafe fn free(&mut self);
}

/// A wrapper to provide ownership for handles to automatically drop via the handle's `Free` trait.
/// A wrapper to provide ownership for handles to automatically drop via the handle's [`Free`] trait.
#[repr(transparent)]
#[derive(Clone, PartialEq, Eq, Default, Debug)]
#[derive(PartialEq, Eq, Default, Debug)]
pub struct Owned<T: Free>(T);

impl<T: Free> Owned<T> {
Expand Down

0 comments on commit 52cf49a

Please sign in to comment.