Skip to content

Commit

Permalink
fix: linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 23, 2024
1 parent 58c26b1 commit 63f7db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn from_values(
tera::Value::String(s) => {
let iterable = iterables
.get(s.as_str())
.ok_or(Error::UnknownIterable { name: s.clone() })?;
.ok_or_else(|| Error::UnknownIterable { name: s.clone() })?;
Ok((s, iterable.clone()))
}
tera::Value::Object(o) => {
Expand Down

0 comments on commit 63f7db9

Please sign in to comment.