Convert some Into impls into From impls
This commit is contained in:
parent
7f75bfa1ad
commit
aea2a6f836
9 changed files with 45 additions and 45 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue