mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-24 13:00:27 +00:00
f4ad451956
Using `.ok()` is more concise when loosing error context in favour of a simple `None` value. Automatic replacement SSR pattern in rust-analyzer: {let $a = $b;match $c {Ok($d) => Some($e), Err(_) => None }} ==>> {$b.ok()} Note that rust-analyzer does not support: - duplicate labels (ie. $c should be equal to $a, and $e equal to $d); - statement lists yet, hence both sides are wrapped in braces. But it performs the desired operation well enough here. |
||
---|---|---|
.. | ||
auto | ||
lib.rs | ||
sdp_attribute.rs | ||
sdp_bandwidth.rs | ||
sdp_connection.rs | ||
sdp_key.rs | ||
sdp_media.rs | ||
sdp_message.rs | ||
sdp_origin.rs | ||
sdp_time.rs | ||
sdp_zone.rs |