This commit is contained in:
nora 2022-09-14 23:03:08 +02:00
parent bded715627
commit 53e8bec4ec
3 changed files with 6 additions and 5 deletions

View file

@ -29,9 +29,9 @@ macro_rules! tuple_args {
#[rustfmt::skip] #[rustfmt::skip]
tuple_args!( tuple_args!(
A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A1 A2 A3 A4 A5 A6 A7 A8 A9 A10
// A11 A12 A13 A14 A15 A16 A17 A18 A19 A20 A11 A12 A13 A14 A15 A16 A17 A18 A19 A20
// A21 A22 A23 A24 A25 A26 A27 A28 A29 A30 A21 A22 A23 A24 A25 A26 A27 A28 A29 A30
// A31 A32 A33 A34 A35 A36 A37 A38 A39 A40 A31 A32 A33 A34 A35 A36 A37 A38 A39 A40
// A41 A42 A43 A44 A45 A46 A47 A48 A49 A50 // A41 A42 A43 A44 A45 A46 A47 A48 A49 A50
// A51 A52 A53 A54 A55 A56 A57 A58 A59 A60 // A51 A52 A53 A54 A55 A56 A57 A58 A59 A60
// A61 A62 A63 A64 A65 A66 A67 A68 A69 A70 // A61 A62 A63 A64 A65 A66 A67 A68 A69 A70
@ -69,7 +69,7 @@ macro_rules! traits {
} }
traits!( traits!(
struct DebugArg: trait Debug; struct DebugArg: trait Debug;
struct DisplayArg: trait Display; struct DisplayArg: trait Display;
struct BinaryArg: trait Binary; struct BinaryArg: trait Binary;
struct OctalArg: trait Octal; struct OctalArg: trait Octal;

View file

@ -91,6 +91,7 @@ macro_rules! options {
impl<W, O: FmtOpts> Formatter<W, O> { impl<W, O: FmtOpts> Formatter<W, O> {
$( $(
#[doc = concat!("Gets the `", stringify!($name), "` option from the underlying options type.")]
#[inline] #[inline]
pub fn $name(&self) -> $ret { pub fn $name(&self) -> $ret {
O::$name(&self.opts) O::$name(&self.opts)

View file

@ -133,7 +133,7 @@ impl PostPadding {
} }
impl<W: Write, O: FmtOpts> Formatter<W, O> { impl<W: Write, O: FmtOpts> Formatter<W, O> {
pub fn pad_integral(&mut self, is_nonnegative: bool, prefix: &str, buf: &str) -> Result { fn pad_integral(&mut self, is_nonnegative: bool, prefix: &str, buf: &str) -> Result {
let mut width = buf.len(); let mut width = buf.len();
let mut sign = None; let mut sign = None;