fmt-debug option · patricklam/verify-rust-std@86c924f

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 86c924f

committed

fmt-debug option

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

1 parent b1a56b5 commit 86c924f

File tree

1 file changed

+

4

-

0

lines changed

1 file changed

+

4

-

0

lines changed

Lines changed: 4 additions & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -118,6 +118,10 @@ impl<'a> Argument<'a> {

118118

Self::new(x, Debug::fmt)

119119

}

120120

#[inline(always)]

121+

pub fn new_debug_noop<'b, T: Debug>(x: &'b T) -> Argument<'_> {

122+

Self::new(x, |_, _| Ok(()))

123+

}

124+

#[inline(always)]

121125

pub fn new_octal<'b, T: Octal>(x: &'b T) -> Argument<'_> {

122126

Self::new(x, Octal::fmt)

123127

}

0 commit comments

Comments

 (0)