Skip to content

error[E0277]: the trait bound CowStr<'_>: From<&&String> is not satisfied #92

@nduchaux

Description

@nduchaux

Hello,

I have updated rust-i18n from 3.0.1 to 3.1.2.
My project does not compile anymore with the error message :
error[E0277]: the trait bound CowStr<'_>: From<&&String> is not satisfied

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait From<&&String> is not implemented for CowStr<'_>

let key = &self.my_string;
let translation = t!(key);

Am I doing something wrong now or the api changed in 3.1.2?

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