Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blaxill committed Feb 10, 2020
1 parent e091ad6 commit 713896c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rustfmt/module/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl FormatServiceNode for Node {
let mut config = rustfmt_nightly::Config::default();
config.set().emit_mode(rustfmt_nightly::EmitMode::Stdout);
let mut session = rustfmt_nightly::Session::new(config, Some(&mut output));
let input = rustfmt_nightly::Input::Text(req.code.clone());
let input = rustfmt_nightly::Input::Text(req.code);
session.format(input).expect("could not format input");
}
let mut res = FormatResponse::new();
Expand Down

0 comments on commit 713896c

Please sign in to comment.