Switch to using refs instead of owned for autofmt write block out (#2573)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-07-02 12:27:11 -07:00
1 parent d4831edcf7
commit 1404d26455
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -132,7 +132,7 @@ pub fn fmt_file(contents: &str, indent: IndentOptions) -> Vec<FormattedBlock> {
formatted_blocks
}
pub fn write_block_out(body: CallBody) -> Option<String> {
pub fn write_block_out(body: &CallBody) -> Option<String> {
let mut buf = Writer::new("");
write_body(&mut buf, &body);