From 457ce954366f3a81989fee788c85a5b20a96ce96 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 23 Feb 2023 14:36:40 +0100 Subject: More EcoVec usage Frame unfortunately can't use it because splice is missing. --- src/model/args.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/model/args.rs') diff --git a/src/model/args.rs b/src/model/args.rs index 9ab07ed8..159e9a77 100644 --- a/src/model/args.rs +++ b/src/model/args.rs @@ -1,5 +1,7 @@ use std::fmt::{self, Debug, Formatter, Write}; +use ecow::EcoVec; + use super::{Array, Cast, Dict, Str, Value}; use crate::diag::{bail, At, SourceResult}; use crate::syntax::{Span, Spanned}; @@ -10,7 +12,7 @@ pub struct Args { /// The span of the whole argument list. pub span: Span, /// The positional and named arguments. - pub items: Vec, + pub items: EcoVec, } /// An argument to a function call: `12` or `draw: false`. -- cgit v1.2.3