Skip to content

Cannot compile: syn::ty::Type doesn't implement std::fmt::Debug #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phiresky opened this issue Jan 15, 2020 · 1 comment
Open

Comments

@phiresky
Copy link

phiresky commented Jan 15, 2020

error[E0277]: `syn::ty::Type` doesn't implement `std::fmt::Debug`
  -->~/.cargo/registry/src/github.com-1ecc6299db9ec823/typescript-definitions-derive-0.1.10/src/attrs.rs:22:5
   |
22 |     pub ts_as: Option<syn::Type>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `syn::ty::Type` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
   |
   = help: the trait `std::fmt::Debug` is not implemented for `syn::ty::Type`
   = note: required because of the requirements on the impl of `std::fmt::Debug` for `std::option::Option<syn::ty::Type>`
   = note: required because of the requirements on the impl of `std::fmt::Debug` for `&std::option::Option<syn::ty::Type>`
   = note: required for the cast to the object type `dyn std::fmt::Debug`
@phiresky
Copy link
Author

Looks like this is fixed in PR #5

Workaround:

typescript-definitions = { git = "https://github.com/onelson/typescript-definitions", branch = "no-debug-attrs"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant