Skip to content
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

Change proc-macro-error dependency to proc-macro-error2 in macros #545

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

thomedw
Copy link
Contributor

@thomedw thomedw commented Sep 28, 2024

This PR updates the proc-macro-error dependency to proc-macro-error2 in the macros package. The change includes:

  1. In macros/Cargo.toml:

    • Changed proc-macro-error = "1.0" to proc-macro-error2 = "2.0.1"
  2. In macros/src/actix.rs:

    • Removed the import of ResultExt from proc_macro_error
    • Updated the error handling in the Lit::Int match arm to use abort! macro instead of unwrap_or_abort()
  3. In macros/src/lib.rs:

    • Changed the external crate declaration from proc_macro_error to proc_macro_error2

Closes #544

@tiagolobocastro
Copy link
Collaborator

Thanks @thomedw !

@tiagolobocastro tiagolobocastro merged commit 04a0be0 into paperclip-rs:master Oct 3, 2024
6 checks passed
@thomedw thomedw deleted the proc-macro-error2 branch October 3, 2024 15:29
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

Successfully merging this pull request may close these issues.

proc-macro-error is unmaintained
2 participants