gstreamer-rs/gstreamer-sdp/src
Marijn Suijten f4ad451956 sdp: Use .ok() instead of manual match on Ok and Err
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.
2021-03-15 21:07:17 +01:00
..
auto Regenerate with latest gir 2021-03-08 12:25:37 +02:00
lib.rs Re-export all dependency crates and their preludes 2020-12-20 19:40:34 +02:00
sdp_attribute.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_bandwidth.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_connection.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_key.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_media.rs sdp: Use .ok() instead of manual match on Ok and Err 2021-03-15 21:07:17 +01:00
sdp_message.rs sdp: Use .ok() instead of manual match on Ok and Err 2021-03-15 21:07:17 +01:00
sdp_origin.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_time.rs Fix license header situation 2020-12-15 11:53:31 +01:00
sdp_zone.rs Fix license header situation 2020-12-15 11:53:31 +01:00