diff --git a/Cargo.toml b/Cargo.toml index 744c968..9bc957f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crunchyroll-rs" -version = "0.5.0" +version = "0.5.1" authors = ["Crunchy Labs Maintainers"] edition = "2021" description = "Pure Rust implementation of the crunchyroll api." @@ -39,9 +39,9 @@ serde_json = "1.0" serde_urlencoded = "0.7" smart-default = "0.7" tokio = { version = "1.29", features = ["sync"] } -webpki-roots = "0.24" +webpki-roots = "0.25" -crunchyroll-rs-internal = { version = "0.5.0", path = "internal" } +crunchyroll-rs-internal = { version = "0.5.1", path = "internal" } # Optional / required from features aes = { version = "0.8", optional = true } diff --git a/internal/Cargo.toml b/internal/Cargo.toml index 5aba156..a669cae 100644 --- a/internal/Cargo.toml +++ b/internal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crunchyroll-rs-internal" -version = "0.5.0" +version = "0.5.1" authors = ["Crunchy Labs Maintainers"] edition = "2021" description = "Internal crate for crunchyroll-rs. Do not use." diff --git a/src/crunchyroll.rs b/src/crunchyroll.rs index 7b99818..3b2235c 100644 --- a/src/crunchyroll.rs +++ b/src/crunchyroll.rs @@ -462,15 +462,13 @@ mod auth { /// [`CrunchyrollBuilder::try_bypass`] to set your built client. pub fn predefined_client_builder() -> ClientBuilder { let mut root_store = rustls::RootCertStore::empty(); - root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map( - |ta| { - rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( - ta.subject, - ta.spki, - ta.name_constraints, - ) - }, - )); + root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| { + rustls::OwnedTrustAnchor::from_subject_spki_name_constraints( + ta.subject, + ta.spki, + ta.name_constraints, + ) + })); let tls_config = rustls::ClientConfig::builder() .with_cipher_suites(rustls::DEFAULT_CIPHER_SUITES) .with_kx_groups(&[&rustls::kx_group::X25519]) diff --git a/src/media/stream.rs b/src/media/stream.rs index d41ed36..2ab7fd9 100644 --- a/src/media/stream.rs +++ b/src/media/stream.rs @@ -18,7 +18,7 @@ fn deserialize_streams<'de, D: Deserializer<'de>>( for (key, value) in as_map { // always empty if key == "urls" { - continue + continue; } for (mut locale, data) in value {