Skip to content

Commit

Permalink
print_item_const: remove extraneous space
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 15, 2020
1 parent d6238bd commit fe62bed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_ast_pretty/pprust.rs
Expand Up @@ -1067,9 +1067,9 @@ impl<'a> State<'a> {
vis: &ast::Visibility,
) {
let leading = match mutbl {
None => "const ",
Some(ast::Mutability::Not) => "static ",
Some(ast::Mutability::Mut) => "static mut ",
None => "const",
Some(ast::Mutability::Not) => "static",
Some(ast::Mutability::Mut) => "static mut",
};
self.head(visibility_qualified(vis, leading));
self.print_ident(ident);
Expand Down

0 comments on commit fe62bed

Please sign in to comment.