1
Fork 0

Convert some Into impls into From impls

This commit is contained in:
Michael Goulet 2024-12-31 01:56:28 +00:00
parent 7f75bfa1ad
commit aea2a6f836
9 changed files with 45 additions and 45 deletions

View file

@ -156,9 +156,9 @@ impl IntoDiagArg for DiagArgValue {
}
}
impl Into<FluentValue<'static>> for DiagArgValue {
fn into(self) -> FluentValue<'static> {
match self {
impl From<DiagArgValue> for FluentValue<'static> {
fn from(val: DiagArgValue) -> Self {
match val {
DiagArgValue::Str(s) => From::from(s),
DiagArgValue::Number(n) => From::from(n),
DiagArgValue::StrListSepByAnd(l) => fluent_value_from_str_list_sep_by_and(l),