fixing value comparison
This commit is contained in:
parent
6f33930cc9
commit
b49aa55ec3
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue