Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Jun 4, 2024
1 parent 08b1407 commit 833fc4a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions minijinja/src/filters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,11 @@ mod builtins {
Some(s) => {
let elements = s.split(split).map(Value::from).collect::<Vec<Value>>();
Ok(Value::from(elements))
},
None => {
Err(Error::new(
ErrorKind::InvalidOperation,
format!("cannot split value of type {}", val.kind()),
))
}
None => Err(Error::new(
ErrorKind::InvalidOperation,
format!("cannot split value of type {}", val.kind()),
)),
}
}

Expand Down

0 comments on commit 833fc4a

Please sign in to comment.