Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 24, 2024
1 parent b74e3fe commit 922954a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/viewer/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ fn to_json(val: slint_interpreter::Value) -> Option<serde_json::Value> {
}
Some(obj.into())
}
slint_interpreter::Value::EnumerationValue(_class, value) => {
Some(value.as_str().into())
}
slint_interpreter::Value::EnumerationValue(_class, value) => Some(value.as_str().into()),
slint_interpreter::Value::Image(image) => {
image.path().and_then(|path| path.to_str()).map(|path| path.into())
}
Expand Down

0 comments on commit 922954a

Please sign in to comment.