Skip to content

Commit

Permalink
Fix link to dhat::Profiler when feature is not enabled
Browse files Browse the repository at this point in the history
Link to `docs.rs` directly, as the `dhat` dependency doesn't exist when
this feature isn't enabled.
  • Loading branch information
bgw committed Aug 6, 2024
1 parent 0e5879c commit 7daf251
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/napi/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ pub struct DhatProfilerGuard(dhat::Profiler);

/// An opaque type potentially wrapping a [`dhat::Profiler`] instance. If we
/// were not compiled with dhat support, this is an empty struct.
///
/// [`dhat::Profiler`]: https://docs.rs/dhat/latest/dhat/struct.Profiler.html
#[cfg(not(any(feature = "__internal_dhat-heap", feature = "__internal_dhat-ad-hoc")))]
#[non_exhaustive]
pub struct DhatProfilerGuard;
Expand Down

0 comments on commit 7daf251

Please sign in to comment.