From 36d79dbcc2b3b624ebb8d6ed5b91d6a9a2e65a3f Mon Sep 17 00:00:00 2001 From: Zanie Date: Tue, 9 Jan 2024 18:34:26 -0600 Subject: [PATCH] Document `Padded` --- crates/puffin-resolver/src/pubgrub/report.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/puffin-resolver/src/pubgrub/report.rs b/crates/puffin-resolver/src/pubgrub/report.rs index 09b963d06..2c7721c55 100644 --- a/crates/puffin-resolver/src/pubgrub/report.rs +++ b/crates/puffin-resolver/src/pubgrub/report.rs @@ -535,6 +535,8 @@ impl PackageRange<'_> { } } +/// Inserts the given padding on the left and right sides of the content if +/// the content does not start and end with whitespace respectively. #[derive(Debug)] struct Padded<'a, T: std::fmt::Display> { left: &'a str,