Skip to content

Commit

Permalink
Removing duplicate binding printing.
Browse files Browse the repository at this point in the history
Now rustfmt 1.4.22 is released:
rust-lang/rustfmt#4447
  • Loading branch information
adetaylor committed Oct 14, 2020
1 parent e0961d6 commit a0227bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions engine/src/bridge_converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ impl<'a> BridgeConversion<'a> {
);
let tynamestring = tyname.to_cpp_name();
let mut for_extern_c_ts = TokenStream2::new();
// TODO - add #[rustfmt::skip] here until
// https://github.com/rust-lang/rustfmt/issues/4159 is fixed.
for_extern_c_ts.extend(
[
TokenTree::Ident(Ident::new("type", Span::call_site())),
Expand Down
4 changes: 0 additions & 4 deletions engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,6 @@ impl IncludeCpp {
}
};
new_bindings.content.as_mut().unwrap().1.append(&mut items);
info!(
"New bindings unprettied: {}",
new_bindings.to_token_stream().to_string()
);
info!(
"New bindings:\n{}",
rust_pretty_printer::pretty_print(&new_bindings.to_token_stream())
Expand Down

0 comments on commit a0227bd

Please sign in to comment.