Do not remove super keyword from super-let

This commit is contained in:
Michael Goulet 2025-05-12 15:30:48 +00:00
parent da1e442ebd
commit 26316b86bc

View file

@ -63,6 +63,11 @@ impl Rewrite for ast::Local {
return Err(RewriteError::SkipFormatting);
}
// FIXME(super_let): Implement formatting
if self.super_.is_some() {
return Err(RewriteError::SkipFormatting);
}
let attrs_str = self.attrs.rewrite_result(context, shape)?;
let mut result = if attrs_str.is_empty() {
"let ".to_owned()