Skip to content

Commit 3bb4d98

Browse files
authored
inspect: Fix docs when building for no_std (#1388)
Not seen in CI since we don't have a cargo-hack check, but seen locally.
1 parent 426b1ca commit 3bb4d98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

support/inspect/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub use initiate::*;
7070
/// `bitflags!`) and you cannot put attributes on it.
7171
///
7272
/// This attribute requires that there be exactly one non-skipped field. Fields
73-
/// of type [`PhantomData`](std::marker::PhantomData) are automatically skipped.
73+
/// of type [`PhantomData`](core::marker::PhantomData) are automatically skipped.
7474
///
7575
/// Note that it is not sufficient to mark any extraneous fields' _types_ with
7676
/// `skip`--you must mark the individual fields with the `skip` attribute.
@@ -209,7 +209,7 @@ pub use initiate::*;
209209
/// ### `debug`
210210
///
211211
/// Inspect the field by formatting it as a string, using the field's
212-
/// [`std::fmt::Debug`] implementation.
212+
/// [`core::fmt::Debug`] implementation.
213213
///
214214
/// In general, implementing [`Inspect`] for the field should be preferred to
215215
/// this in order to preserve structured data.
@@ -727,7 +727,7 @@ impl Response<'_> {
727727
self.field(name, AsBinary(value))
728728
}
729729

730-
/// Adds a string field that implements [`std::fmt::Display`].
730+
/// Adds a string field that implements [`core::fmt::Display`].
731731
///
732732
/// This is a convenience method for `field_with(name, ||
733733
/// value.to_string())`. It lazily allocates the string only when the
@@ -745,7 +745,7 @@ impl Response<'_> {
745745
self.field_with(name, || value.to_string())
746746
}
747747

748-
/// Adds a string field that implements [`std::fmt::Debug`].
748+
/// Adds a string field that implements [`core::fmt::Debug`].
749749
///
750750
/// This is a convenience method for `field(name, format_args!("{value:?}"))`.
751751
///

0 commit comments

Comments
 (0)