Skip to content

Commit

Permalink
explicitly match unit values (clippy::ignored_unit_patterns)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and Byron committed Aug 20, 2024
1 parent a8c7fa5 commit d636dc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,20 +406,20 @@ where
let s = if !consumed_newlines {
formatter
.write_char('\n')
.and_then(|_| padding(formatter, &state.padding))
.and_then(|()| padding(formatter, &state.padding))
} else {
Ok(())
};

s.and_then(|_| {
s.and_then(|()| {
for _ in 0..options.code_block_token_count {
formatter.write_char(options.code_block_token)?;
}
Ok(())
})
.and_then(|_| formatter.write_str(info))
.and_then(|_| formatter.write_char('\n'))
.and_then(|_| padding(formatter, &state.padding))
.and_then(|()| formatter.write_str(info))
.and_then(|()| formatter.write_char('\n'))
.and_then(|()| padding(formatter, &state.padding))
}
HtmlBlock => Ok(()),
MetadataBlock(MetadataBlockKind::YamlStyle) => formatter.write_str("---\n"),
Expand Down

0 comments on commit d636dc6

Please sign in to comment.