diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-11 11:46:12 +0100 |
| commit | 8e5f446544fd147277ed2e4208c7ea793cc846a7 (patch) | |
| tree | f8b0143fb3845da6673ca1312f03ab53f0f28a50 /src/eval/cast.rs | |
| parent | a9fdff244aef859449a76e5f762ee7c343a8ddcc (diff) | |
Autocompletion for raw language tags
Diffstat (limited to 'src/eval/cast.rs')
| -rw-r--r-- | src/eval/cast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval/cast.rs b/src/eval/cast.rs index 806f7e92..ac23bd3a 100644 --- a/src/eval/cast.rs +++ b/src/eval/cast.rs @@ -8,6 +8,7 @@ use ecow::EcoString; use super::{Array, Str, Value}; use crate::diag::StrResult; use crate::syntax::Spanned; +use crate::util::separated_list; /// Cast from a value to a specific type. pub trait Cast<V = Value>: Sized { @@ -284,7 +285,7 @@ impl CastInfo { msg.push_str(" nothing"); } - crate::diag::comma_list(&mut msg, &parts, "or"); + msg.push_str(&separated_list(&parts, "or")); if !matching_type { msg.push_str(", found "); |
