Merge pull request #472 from marcusklaas/rustup4000
Remove unsafe push and pop variants
This commit is contained in:
commit
00aa232834
@ -426,7 +426,6 @@ fn rewrite(&self, context: &RewriteContext, width: usize, offset: Indent) -> Opt
|
||||
visitor.block_indent = context.block_indent + context.overflow_indent;
|
||||
|
||||
let prefix = match self.rules {
|
||||
ast::BlockCheckMode::PushUnsafeBlock(..) |
|
||||
ast::BlockCheckMode::UnsafeBlock(..) => {
|
||||
let snippet = context.snippet(self.span);
|
||||
let open_pos = try_opt!(snippet.find_uncommented("{"));
|
||||
@ -463,7 +462,6 @@ fn rewrite(&self, context: &RewriteContext, width: usize, offset: Indent) -> Opt
|
||||
|
||||
prefix
|
||||
}
|
||||
ast::BlockCheckMode::PopUnsafeBlock(..) |
|
||||
ast::BlockCheckMode::DefaultBlock => {
|
||||
visitor.last_pos = self.span.lo;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user