This commit is contained in:
Micha Reiser 2023-10-23 11:12:25 +09:00 committed by GitHub
parent d6a4283003
commit 2c2ebf952a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 16 deletions

View file

@ -2448,7 +2448,7 @@ where
/// Adds a new entry to the join output.
pub fn entry(&mut self, entry: &dyn Format<Context>) -> &mut Self {
self.result = self.result.and_then(|_| {
self.result = self.result.and_then(|()| {
if let Some(with) = &self.with {
if self.has_elements {
with.fmt(self.fmt)?;
@ -2519,7 +2519,7 @@ impl<'a, 'buf, Context> FillBuilder<'a, 'buf, Context> {
separator: &dyn Format<Context>,
entry: &dyn Format<Context>,
) -> &mut Self {
self.result = self.result.and_then(|_| {
self.result = self.result.and_then(|()| {
if self.empty {
self.empty = false;
} else {