Move pp::Printer helpers to direct impl
This commit is contained in:
parent
e91dbc5916
commit
cab453250a
10 changed files with 66 additions and 55 deletions
|
@ -2571,7 +2571,6 @@ impl<'a> Parser<'a> {
|
|||
None => continue,
|
||||
};
|
||||
let sugg = pprust::to_string(|s| {
|
||||
use crate::print::pprust::PrintState;
|
||||
s.popen();
|
||||
s.print_expr(&e);
|
||||
s.s.word( ".");
|
||||
|
@ -4588,7 +4587,7 @@ impl<'a> Parser<'a> {
|
|||
stmt_span = stmt_span.with_hi(self.prev_span.hi());
|
||||
}
|
||||
let sugg = pprust::to_string(|s| {
|
||||
use crate::print::pprust::{PrintState, INDENT_UNIT};
|
||||
use crate::print::pprust::INDENT_UNIT;
|
||||
s.ibox(INDENT_UNIT);
|
||||
s.bopen();
|
||||
s.print_stmt(&stmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue