We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ef162 commit c97996fCopy full SHA for c97996f
src/types.rs
@@ -682,10 +682,12 @@ impl Rewrite for ast::Ty {
682
};
683
let mut res = bounds.rewrite(context, shape)?;
684
// We may have falsely removed a trailing `+` inside macro call.
685
- if context.inside_macro() && bounds.len() == 1 {
686
- if context.snippet(self.span).ends_with('+') && !res.ends_with('+') {
687
- res.push('+');
688
- }
+ if context.inside_macro()
+ && bounds.len() == 1
+ && context.snippet(self.span).ends_with('+')
+ && !res.ends_with('+')
689
+ {
690
+ res.push('+');
691
}
692
Some(format!("{prefix}{res}"))
693
0 commit comments