From 3a6111addf52cb2e5d4f5f73861349e434e19e0b Mon Sep 17 00:00:00 2001 From: Kevin Guthrie Date: Sun, 22 Sep 2024 21:00:20 -0400 Subject: [PATCH] Fixing ci build issues with docs, min-rust version, and features --- valuable/src/renderable.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/valuable/src/renderable.rs b/valuable/src/renderable.rs index c835823..b960c57 100644 --- a/valuable/src/renderable.rs +++ b/valuable/src/renderable.rs @@ -5,7 +5,7 @@ use crate::{Slice, Valuable, Value}; /// A [`Valuable`] sub-type for using ordinarily non-`valuable` types by /// rendering them to a string with [`Debug`] or [`Display`]. /// -/// This is most useful when defining a [`Structable`] value that includes +/// This is most useful when defining a [`Structable`](crate::Structable) value that includes /// fields of types where [`Valuable`] cannot be implemented like types /// contained in external crates. /// @@ -170,7 +170,7 @@ impl<'a> Renderable<'a> { /// ``` #[inline] pub fn render(&self, target: &mut dyn Write) -> fmt::Result { - write!(target, "{self:?}") + write!(target, "{:?}", self) } /// Render this [`Renderable`] to the given [`Write`] target, but force the @@ -201,9 +201,9 @@ impl<'a> Renderable<'a> { #[inline] pub fn render_with_prettiness(&self, target: &mut dyn Write, pretty: bool) -> fmt::Result { if pretty { - write!(target, "{self:#?}") + write!(target, "{:#?}", self) } else { - write!(target, "{self:?}") + write!(target, "{:?}", self) } } @@ -229,7 +229,7 @@ impl<'a> Renderable<'a> { #[cfg(feature = "alloc")] #[inline] pub fn render_to_string(&self) -> alloc::string::String { - format!("{self:?}") + alloc::format!("{:?}", self) } /// Render this [`Renderable`] to an owned [`String`], but force the @@ -261,9 +261,9 @@ impl<'a> Renderable<'a> { #[inline] pub fn render_to_string_with_prettiness(&self, pretty: bool) -> alloc::string::String { if pretty { - format!("{self:#?}") + alloc::format!("{:#?}", self) } else { - format!("{self:?}") + alloc::format!("{:?}", self) } } }