From 3634807716ff2566283b1355f471d68d194238d0 Mon Sep 17 00:00:00 2001 From: Atthur Jourdan <166376140+iWkagAoE2tbdtD3OWPQ2vingP@users.noreply.github.com> Date: Thu, 30 May 2024 16:59:51 +0200 Subject: [PATCH] Conditionally use std::fmt or core::fmt if feature std is activated or not --- src/tap_test.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tap_test.rs b/src/tap_test.rs index ef9e534..1e22db7 100644 --- a/src/tap_test.rs +++ b/src/tap_test.rs @@ -7,7 +7,11 @@ use alloc::{ vec::Vec, }; use core::fmt::Write; + +#[cfg(feature = "std")] use std::fmt; +#[cfg(not(feature = "std"))] +use core::fmt; use crate::{NOT_OK_SYMBOL, OK_SYMBOL};