cfg feature flag test

This commit is contained in:
Toby Lawrence 2020-10-28 21:10:31 -04:00
parent d481392563
commit 248bc3c406
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ pub fn set_recorder(recorder: &'static dyn Recorder) -> Result<(), SetRecorderEr
///
/// An error is returned if a recorder has already been set.
#[cfg(all(feature = "std", atomic_cas))]
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
pub fn set_boxed_recorder(recorder: Box<dyn Recorder>) -> Result<(), SetRecorderError> {
set_recorder_inner(|| unsafe { &*Box::into_raw(recorder) })
}