From 3d7ae26d230cbd41d999c472a6c64f586120571d Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 29 Nov 2024 16:46:01 +0200 Subject: [PATCH 1/3] chore(stremio-core-web): bump version v0.48.1 --- Cargo.lock | 2 +- stremio-core-web/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d0678049b..025783dad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1170,7 +1170,7 @@ dependencies = [ [[package]] name = "stremio-core-web" -version = "0.48.0" +version = "0.48.1" dependencies = [ "boolinator", "chrono", diff --git a/stremio-core-web/Cargo.toml b/stremio-core-web/Cargo.toml index f33e06411..09d2ee243 100644 --- a/stremio-core-web/Cargo.toml +++ b/stremio-core-web/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stremio-core-web" -version = "0.48.0" +version = "0.48.1" authors = ["Smart Code OOD"] edition = "2021" From 927437a3573a786cd80334e51014810474c64ea2 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 29 Nov 2024 17:03:47 +0200 Subject: [PATCH 2/3] fix: stable rustfmt & clippy Signed-off-by: Lachezar Lechev --- src/addon_transport/http_transport/legacy/mod.rs | 2 +- src/types/addon/manifest.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addon_transport/http_transport/legacy/mod.rs b/src/addon_transport/http_transport/legacy/mod.rs index 3d84096fc..3e6c58f9b 100644 --- a/src/addon_transport/http_transport/legacy/mod.rs +++ b/src/addon_transport/http_transport/legacy/mod.rs @@ -114,7 +114,7 @@ impl<'a, T: Env> AddonLegacyTransport<'a, T> { } } -impl<'a, T: Env> AddonTransport for AddonLegacyTransport<'a, T> { +impl AddonTransport for AddonLegacyTransport<'_, T> { fn resource(&self, path: &ResourcePath) -> TryEnvFuture { let fetch_req = match build_legacy_req(self.transport_url, path) { Ok(r) => r, diff --git a/src/types/addon/manifest.rs b/src/types/addon/manifest.rs index a3bbed70e..241fe244c 100644 --- a/src/types/addon/manifest.rs +++ b/src/types/addon/manifest.rs @@ -134,7 +134,7 @@ impl Manifest { ManifestResource::Short(_) => self.id_prefixes.as_ref(), ManifestResource::Full { id_prefixes, .. } => id_prefixes.as_ref(), }; - let type_supported = types.map_or(false, |types| types.contains(&path.r#type)); + let type_supported = types.is_some_and(|types| types.contains(&path.r#type)); let id_supported = id_prefixes.map_or(true, |id_prefixes| { id_prefixes.iter().any(|prefix| path.id.starts_with(prefix)) }); From 816e38a8e2fbfb91afe8b002273f522d89a11227 Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Fri, 29 Nov 2024 17:06:13 +0200 Subject: [PATCH 3/3] fix: clippy lints Signed-off-by: Lachezar Lechev --- stremio-core-web/src/model/serialize_catalogs_with_extra.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stremio-core-web/src/model/serialize_catalogs_with_extra.rs b/stremio-core-web/src/model/serialize_catalogs_with_extra.rs index 2cb691ddc..383aa8b80 100644 --- a/stremio-core-web/src/model/serialize_catalogs_with_extra.rs +++ b/stremio-core-web/src/model/serialize_catalogs_with_extra.rs @@ -133,7 +133,7 @@ impl<'a> CatalogsWithExtra<'a> { } #[cfg(feature = "wasm")] -impl<'a> super::SerializeModel for CatalogsWithExtra<'a> { +impl super::SerializeModel for CatalogsWithExtra<'_> { type Error = serde_json::Error; fn serialize_model(&self) -> Result {