Skip to content

Override [provider] functions to let users use it without context #3

@olgam4

Description

@olgam4
#[provider(singleton = true)]
fn provide_text_assembler(_: &mut Context<ApplicationConfig>) -> TextAssemblerRef {
    Arc::new(TextAssembler::new())
}

#[provider(singleton = true)]

would let users do

#[provider(singleton = true)]
fn provide_text_assembler() -> TextAssemblerRef {
    Arc::new(TextAssembler::new())
}

#[provider(singleton = true)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions