mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 20:53:37 +00:00
Remove 'mut' notation
This commit is contained in:
parent
f35a420597
commit
840edb2c4f
@ -535,7 +535,7 @@ impl fmt::Display for FormatReport {
|
||||
// Formatting which depends on the AST.
|
||||
fn format_ast<F>(
|
||||
krate: &ast::Crate,
|
||||
mut parse_session: &mut ParseSess,
|
||||
parse_session: &mut ParseSess,
|
||||
main_file: &Path,
|
||||
config: &Config,
|
||||
codemap: &Rc<CodeMap>,
|
||||
@ -796,7 +796,7 @@ pub enum Input {
|
||||
}
|
||||
|
||||
pub fn run(input: Input, config: &Config) -> Summary {
|
||||
let mut out = &mut stdout();
|
||||
let out = &mut stdout();
|
||||
output_header(out, config.write_mode()).ok();
|
||||
match format_input(input, config, Some(out)) {
|
||||
Ok((summary, _, report)) => {
|
||||
|
@ -68,7 +68,7 @@ pub fn rewrite_macro(
|
||||
shape: Shape,
|
||||
position: MacroPosition,
|
||||
) -> Option<String> {
|
||||
let mut context = &mut context.clone();
|
||||
let context = &mut context.clone();
|
||||
context.inside_macro = true;
|
||||
if context.config.use_try_shorthand() {
|
||||
if let Some(expr) = convert_try_mac(mac, context) {
|
||||
|
Loading…
Reference in New Issue
Block a user