Skip to content

Commit

Permalink
Change proc-macro-error to proc-macro-error2
Browse files Browse the repository at this point in the history
  • Loading branch information
thomedw committed Sep 28, 2024
1 parent 5cccdd6 commit 3c6d3c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ proc-macro = true
[dependencies]
mime = "0.3"
proc-macro2 = "1.0"
proc-macro-error = "1.0"
proc-macro-error2 = "2.0.1"
quote = "1.0"
syn = { version = "1.0", features = ["full"] }
heck = { version = "0.4", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion macros/src/actix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use heck::*;
use http::StatusCode;
use lazy_static::lazy_static;
use proc_macro::TokenStream;
use proc_macro_error::ResultExt;
use proc_macro_error2::ResultExt;

Check warning on line 8 in macros/src/actix.rs

View workflow job for this annotation

GitHub Actions / clippy

unused import: `proc_macro_error2::ResultExt`

warning: unused import: `proc_macro_error2::ResultExt` --> macros/src/actix.rs:8:5 | 8 | use proc_macro_error2::ResultExt; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default

Check warning on line 8 in macros/src/actix.rs

View workflow job for this annotation

GitHub Actions / stable - x86_64-unknown-linux-gnu

unused import: `proc_macro_error2::ResultExt`

Check warning on line 8 in macros/src/actix.rs

View workflow job for this annotation

GitHub Actions / nightly - x86_64-unknown-linux-gnu

unused import: `proc_macro_error2::ResultExt`
use quote::{quote, ToTokens};
use strum_macros::EnumString;
use syn::{
Expand Down
2 changes: 1 addition & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

extern crate proc_macro;
#[macro_use]
extern crate proc_macro_error;
extern crate proc_macro_error2;

#[cfg(feature = "actix")]
#[macro_use]
Expand Down

0 comments on commit 3c6d3c7

Please sign in to comment.