fixing value comparison

This commit is contained in:
Chris Cochrun 2024-11-20 09:57:17 -06:00
parent 6f33930cc9
commit b49aa55ec3

View file

@ -219,9 +219,13 @@ fn lisp_to_background(lisp: &Value) -> Background {
match lisp { match lisp {
Value::List(list) => { Value::List(list) => {
if let Some(source) = list.iter().position(|v| { if let Some(source) = list.iter().position(|v| {
v == Value::Keyword(Keyword::from("source")) v == &Value::Keyword(Keyword::from("source"))
}) { }) {
let path = list[source + 1]; let source = list[source + 1];
match source {
Value::String(s) =>
}
Background::try_from(&path) Background::try_from(&path)
} else { } else {
Background::default() Background::default()