about summary refs log tree commit diff stats
path: root/crates/libmpv2/Cargo.toml
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 16:20:34 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 16:20:34 +0200
commita9fddbeebf428eb57c60afab96fbbd38629a636e (patch)
tree480d9c1ae6f43598bfff7e4a29a378691b0a7508 /crates/libmpv2/Cargo.toml
parentfix(crates/yt/{commands/playlist,videos/format_video}): Correctly calculate w... (diff)
downloadyt-a9fddbeebf428eb57c60afab96fbbd38629a636e.zip
fix(treewide): Use `json_try_get!` instead of `json.get(..).map(|| ..)`
`json.get` will return `Some(Value::Null)` if the json key exists but
has been set to `null`. This is obviously not what we want, and as such
we also need to check that the value is not null, before calling map.
The `json_try_get!` macro does exactly that.
Diffstat (limited to 'crates/libmpv2/Cargo.toml')
0 files changed, 0 insertions, 0 deletions