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
+5
View File
@@ -63,6 +63,11 @@ fn rewrite_result(&self, context: &RewriteContext<'_>, shape: Shape) -> RewriteR
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()