Skip to content

Commit

Permalink
Merge pull request #84 from yassun7010/use_proc_macro_error2
Browse files Browse the repository at this point in the history
feat: use proc_macro_error2.
  • Loading branch information
yassun7010 authored Sep 7, 2024
2 parents 430e946 + f660565 commit a07e30b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion serde_valid_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc-macro = true
[dependencies]
itertools.workspace = true
paste.workspace = true
proc-macro-error = "^1.0"
proc-macro-error2 = { version = "2.0.0", default-features = false }
proc-macro2 = "^1.0"
quote = "^1.0"
strsim = "0.11.0"
Expand Down
2 changes: 1 addition & 1 deletion serde_valid_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use derive::expand_derive;
use error::to_compile_errors;
use error::{Error, Errors};
use proc_macro::TokenStream;
use proc_macro_error::proc_macro_error;
use proc_macro_error2::proc_macro_error;
use syn::{parse_macro_input, DeriveInput};

#[proc_macro_derive(Validate, attributes(rule, validate, serde_valid))]
Expand Down
2 changes: 1 addition & 1 deletion serde_valid_derive/src/types/field/named.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::Field;
use proc_macro_error::abort;
use proc_macro_error2::abort;
use quote::quote;
use std::borrow::Cow;
use syn::spanned::Spanned;
Expand Down
2 changes: 1 addition & 1 deletion serde_valid_derive/src/types/field/unnamed.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::Field;
use proc_macro_error::abort;
use proc_macro_error2::abort;
use quote::quote;
use std::borrow::Cow;
use std::convert::AsRef;
Expand Down
2 changes: 1 addition & 1 deletion serde_valid_derive/src/types/single_ident_path.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use proc_macro_error::abort;
use proc_macro_error2::abort;
use syn::spanned::Spanned;

pub struct SingleIdentPath<'a>(&'a syn::Path);
Expand Down

0 comments on commit a07e30b

Please sign in to comment.