diff options
| author | Marcus Klaas <mail@marcusklaas.nl> | 2015-10-19 21:41:47 +0200 |
|---|---|---|
| committer | Marcus Klaas <mail@marcusklaas.nl> | 2015-10-19 23:06:36 +0200 |
| commit | e8447a82104d5f9da2802af1e8530aba7ad6512a (patch) | |
| tree | ef25957af70c6c97892048a8b052158c5116cd18 /src/expr.rs | |
| parent | 3970748f59376381f360e42d8f703b2f0f7bbde7 (diff) | |
Fix large block comments
Diffstat (limited to 'src/expr.rs')
| -rw-r--r-- | src/expr.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/expr.rs b/src/expr.rs index 8592ad47b9e..f0a877db215 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -471,10 +471,6 @@ impl Rewrite for ast::Block { visitor.visit_block(self); - // Push text between last block item and end of block - let snippet = visitor.snippet(mk_sp(visitor.last_pos, self.span.hi)); - visitor.buffer.push_str(&snippet); - Some(format!("{}{}", prefix, visitor.buffer)) } } @@ -1534,8 +1530,8 @@ pub fn rewrite_assign_rhs<S: Into<String>>(context: &RewriteContext, let new_offset = offset.block_indent(context.config); result.push_str(&format!("\n{}", new_offset.to_string(context.config))); - // FIXME: we probably should related max_width to width instead of config.max_width - // where is the 1 coming from anyway? + // FIXME: we probably should related max_width to width instead of + // config.max_width where is the 1 coming from anyway? let max_width = try_opt!(context.config.max_width.checked_sub(new_offset.width() + 1)); let inner_context = context.nested_context(); let rhs = ex.rewrite(&inner_context, max_width, new_offset); |
