Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
proc-macro = true

[dependencies]
proc-macro-error = "1.0.4"
proc-macro-error2 = "2.0.1"
proc-macro2 = "1.0.92"
sqlx-conditional-queries-core = { path = "../core", version = "0.3" }

Expand Down
4 changes: 2 additions & 2 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![doc = include_str!("../README.md")]

use proc_macro_error::abort;
use proc_macro_error2::abort;
use sqlx_conditional_queries_core::{AnalyzeError, DatabaseType, Error, ExpandError};

const DATABASE_TYPE: DatabaseType = if cfg!(feature = "postgres") {
Expand All @@ -14,7 +14,7 @@ const DATABASE_TYPE: DatabaseType = if cfg!(feature = "postgres") {
};

// The public docs for this macro live in the sql-conditional-queries crate.
#[proc_macro_error::proc_macro_error]
#[proc_macro_error2::proc_macro_error]
#[proc_macro]
pub fn conditional_query_as(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
let input: proc_macro2::TokenStream = input.into();
Expand Down
Loading