Skip to content

Commit

Permalink
derive: Use global scope in quote
Browse files Browse the repository at this point in the history
  • Loading branch information
YBoy-git committed Dec 12, 2024
1 parent 2803c8e commit 3e81b45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ pub fn row(input: proc_macro::TokenStream) -> proc_macro::TokenStream {

let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();

// TODO: replace `clickhouse` with `::clickhouse` here.
let expanded = quote! {
#[automatically_derived]
impl #impl_generics clickhouse::Row for #name #ty_generics #where_clause {
impl #impl_generics ::clickhouse::Row for #name #ty_generics #where_clause {
const COLUMN_NAMES: &'static [&'static str] = #column_names;
}
};
Expand Down

0 comments on commit 3e81b45

Please sign in to comment.