diff --git a/luisa_compute_derive_impl/src/lib.rs b/luisa_compute_derive_impl/src/lib.rs index 3e34dbf..0bebe4f 100644 --- a/luisa_compute_derive_impl/src/lib.rs +++ b/luisa_compute_derive_impl/src/lib.rs @@ -38,7 +38,7 @@ pub struct Compiler { impl Compiler { pub fn new() -> Self { Self { - crate_path: quote!(::luisa_compute), + crate_path: quote!(luisa_compute), } } fn lang_path(&self) -> TokenStream { diff --git a/luisa_compute_track/src/lib.rs b/luisa_compute_track/src/lib.rs index c2894d9..0030ca8 100644 --- a/luisa_compute_track/src/lib.rs +++ b/luisa_compute_track/src/lib.rs @@ -420,7 +420,7 @@ pub fn tracked( let path = crate_path.path; quote!(#path) } else { - quote!(::luisa_compute) + quote!(luisa_compute) }; let item = syn::parse_macro_input!(item as ItemFn);