fmt-debug option · patricklam/verify-rust-std@86c924f (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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 | } |