don't convert types into identical types
example: let x: String = String::new().into();
This commit is contained in:
parent
22719efcc5
commit
545d8d675c
4 changed files with 5 additions and 5 deletions
|
@ -1036,7 +1036,7 @@ impl<'a> State<'a> {
|
|||
self.maybe_print_comment(st.span.lo());
|
||||
match st.kind {
|
||||
hir::StmtKind::Local(ref loc) => {
|
||||
self.print_local(loc.init.as_deref(), |this| this.print_local_decl(&loc));
|
||||
self.print_local(loc.init, |this| this.print_local_decl(&loc));
|
||||
}
|
||||
hir::StmtKind::Item(item) => self.ann.nested(self, Nested::Item(item)),
|
||||
hir::StmtKind::Expr(ref expr) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue