We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pad
1 parent 78e79db commit 74ba83bCopy full SHA for 74ba83b
src/format/formatting.rs
@@ -103,7 +103,7 @@ impl<'a, I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>> DelayedFormat<I> {
103
Item::Literal(s) | Item::Space(s) => w.write_str(s),
104
#[cfg(feature = "alloc")]
105
Item::OwnedLiteral(ref s) | Item::OwnedSpace(ref s) => w.write_str(s),
106
- Item::Numeric(ref spec, ref pad) => self.format_numeric(w, spec, pad),
+ Item::Numeric(ref spec, pad) => self.format_numeric(w, spec, pad),
107
Item::Fixed(ref spec) => self.format_fixed(w, spec),
108
Item::Error => Err(fmt::Error),
109
}?;
@@ -112,7 +112,7 @@ impl<'a, I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>> DelayedFormat<I> {
112
}
113
114
115
- fn format_numeric(&self, w: &mut impl Write, spec: &Numeric, pad: &Pad) -> fmt::Result {
+ fn format_numeric(&self, w: &mut impl Write, spec: &Numeric, pad: Pad) -> fmt::Result {
116
use self::Numeric::*;
117
118
let (width, v) = match (spec, self.date, self.time) {
0 commit comments