Skip to content

Commit

Permalink
chore: fixes needed for subtree-push
Browse files Browse the repository at this point in the history
ytmimi committed Jan 2, 2025
1 parent f874199 commit ab98945
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/types.rs
Original file line number Diff line number Diff line change
@@ -1015,14 +1015,11 @@ impl Rewrite for ast::Ty {
}

let inner_ty_shape = if context.use_block_indent() {
shape
.offset_left(result.len())
.max_width_error(shape.width, self.span())?
shape.offset_left(result.len(), self.span())?
} else {
shape
.visual_indent(result.len())
.sub_width(result.len())
.max_width_error(shape.width, self.span())?
.sub_width(result.len(), self.span())?
};

let rewrite = binder.inner_ty.rewrite_result(context, inner_ty_shape)?;

0 comments on commit ab98945

Please sign in to comment.