types/stream: fmt the source
@@ -24,18 +24,18 @@ pub struct Stream {
impl Stream {
pub fn is_web_ready(&self) -> bool {
if self.behavior_hints.get("notWebReady") == Some(&serde_json::Value::Bool(true)) {
- return false
+ return false;
}
match &self.source {
StreamSource::Url { url } if url.starts_with("https:") => true,
- _ => false
+ _ => false,
}
}
pub fn is_p2p(&self) -> bool {
match &self.source {
StreamSource::Torrent { .. } => true,
StreamSource::Url { url } if url.starts_with("magnet:") => true,
- _ => false
+ _ => false,
}
}
}
