Skip to content

Commit 197a813

Browse files
authored
Merge pull request #1 from dianne/rust-145838-compat
Adjust formatting macro usage for compatibility with future Rust compiler versions
2 parents 2d89554 + 59613f4 commit 197a813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ async fn show_files_handler(
622622
</body>
623623
</html>",
624624
file_rows,
625-
if path.is_empty() { "" } else { &format!("/{path}") }
625+
if path.is_empty() { String::new() } else { format!("/{path}") }
626626
);
627627

628628
Ok(Html(html))

0 commit comments

Comments
 (0)