Remove 'mut' notation

This commit is contained in:
topecongiro 2017-08-11 17:54:38 +09:00
parent f35a420597
commit 840edb2c4f
2 changed files with 3 additions and 3 deletions

View File

@ -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)) => {

View File

@ -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) {