Switch to using refs instead of owned for autofmt write block out (#2573)
This commit is contained in:
1 parent
d4831edcf7
commit
1404d26455
8 files changed
+11
-11
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user