Do not use nightly features
@@ -147,10 +147,11 @@ impl From<(&MetaItemPreview, &ResourceRequest)> for MetaItemDeepLinks {
utf8_percent_encode(video_id, URI_COMPONENT_ENCODE_SET)
)
}),
- player: item
- .id
- .starts_with(YOUTUBE_PREFIX)
- .then(|| ())
+ player: if item.id.starts_with(YOUTUBE_PREFIX) {
+ Some(())
+ } else {
+ None
+ }
.zip(item.behavior_hints.default_video_id.clone())
.and_then(|(_, default_video_id)| {
// video id are formed like that: yt_id:YT_CHANNEL_ID:YT_VIDEO_ID
