Skip to content

Commit

Permalink
prefix ::
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Jan 22, 2024
1 parent 3f178a5 commit c9f64ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proc_macros/src/freyja_main/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ pub(crate) fn generate(ir: FreyjaMainOutput) -> TokenStream {
} = ir;

quote! {
#[freyja::tokio::main]
#[::freyja::tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
use freyja::freyja_common::data_adapter::DataAdapterFactory;
use ::freyja::freyja_common::data_adapter::DataAdapterFactory;
let factories: Vec<Box<dyn DataAdapterFactory + Send + Sync>> = vec![
#(Box::new(
#data_adapter_factory_types::create_new()
.expect(concat!("Could not create ", stringify!(#data_adapter_factory_types)))
)),*
];

freyja::freyja_main::<
::freyja::freyja_main::<
#dt_adapter_type,
#cloud_adapter_type,
#mapping_adapter_type
Expand Down

0 comments on commit c9f64ea

Please sign in to comment.