fix: temp disable prettyplease formatting
This commit is contained in:
parent
66a9995df7
commit
613c1ed423
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue