fix: temp disable prettyplease formatting

This commit is contained in:
DaniPopes 2023-03-18 20:00:37 +01:00
parent 66a9995df7
commit 613c1ed423
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 5 additions and 3 deletions

View File

@ -301,9 +301,11 @@ impl ToTokens for ContractBindings {
impl fmt::Display for ContractBindings {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
if self.format {
let syntax_tree = syn::parse2::<syn::File>(self.tokens.clone()).unwrap();
let s = prettyplease::unparse(&syntax_tree);
f.write_str(&s)
// TODO:
todo!("enable formatting when prettyplease uses syn 2.0")
// let syntax_tree = syn::parse2::<syn::File>(self.tokens.clone()).unwrap();
// let s = prettyplease::unparse(&syntax_tree);
// f.write_str(&s)
} else {
fmt::Display::fmt(&self.tokens, f)
}