Skip to content

Commit d7720b3

Browse files
committed
fix(uudoc): format and clippy issues in uudoc
1 parent c3a88a8 commit d7720b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/uudoc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ impl MDWriter<'_, '_> {
465465
/// # Errors
466466
/// Returns an error if the writer fails.
467467
fn options(&mut self) -> io::Result<()> {
468-
writeln!(self.w, "")?;
468+
writeln!(self.w)?;
469469
writeln!(self.w, "## Options")?;
470-
writeln!(self.w, "")?;
470+
writeln!(self.w)?;
471471
write!(self.w, "<dl>")?;
472472
for arg in self.command.get_arguments() {
473473
write!(self.w, "<dt>")?;

tests/uudoc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ fn test_markdown_header_format() {
144144
let docs_path = "docs/src/utils/cat.md";
145145

146146
if fs::metadata(docs_path).is_ok() {
147-
let content = fs::read_to_string(docs_path)
148-
.expect("Failed to read generated markdown file");
147+
let content =
148+
fs::read_to_string(docs_path).expect("Failed to read generated markdown file");
149149

150150
// Verify Options header is in markdown format (## Options)
151151
assert!(

0 commit comments

Comments
 (0)