Skip to content

Commit 26316b8

Browse files
Do not remove super keyword from super-let
1 parent da1e442 commit 26316b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/rustfmt/src/items.rs

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ impl Rewrite for ast::Local {
6363
return Err(RewriteError::SkipFormatting);
6464
}
6565

66+
// FIXME(super_let): Implement formatting
67+
if self.super_.is_some() {
68+
return Err(RewriteError::SkipFormatting);
69+
}
70+
6671
let attrs_str = self.attrs.rewrite_result(context, shape)?;
6772
let mut result = if attrs_str.is_empty() {
6873
"let ".to_owned()

0 commit comments

Comments
 (0)