Skip to content

Commit

Permalink
perf: Slight change for if-existence
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Nov 20, 2018
1 parent f4500fd commit 92aaadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquid-interpreter/src/variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Variable {

/// Convert to a `Path`.
pub fn try_evaluate<'c>(&'c self, context: &'c Context) -> Option<Path<'c>> {
let mut path = Path::with_index(self.variable.clone());
let mut path = Path::with_index(self.variable.as_ref());
path.reserve(self.indexes.len());
for expr in &self.indexes {
let v = expr.try_evaluate(context)?;
Expand Down

0 comments on commit 92aaadf

Please sign in to comment.