fmt-debug option · patricklam/verify-rust-std@86c924f (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 86c924f

fmt-debug option

Allows disabling `fmt::Debug` derive and debug formatting.

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 4 additions & 0 deletions

Original file line number Diff line number Diff line change
@@ -118,6 +118,10 @@ impl<'a> Argument<'a> {
118 118 Self::new(x, Debug::fmt)
119 119 }
120 120 #[inline(always)]
121 +pub fn new_debug_noop<'b, T: Debug>(x: &'b T) -> Argument<'_> {
122 +Self::new(x, |_, _
123 +}
124 +#[inline(always)]
121 125 pub fn new_octal<'b, T: Octal>(x: &'b T) -> Argument<'_> {
122 126 Self::new(x, Octal::fmt)
123 127 }