From 3d78fa11a65cdb272d37023569145e0ad766e4a9 Mon Sep 17 00:00:00 2001 From: j-mendez Date: Tue, 28 May 2024 07:55:04 -0400 Subject: [PATCH] chore(clippy): fix cdp multiple bound locations downcast arc --- chromiumoxide_cdp/Cargo.toml | 4 ++-- chromiumoxide_cdp/src/cdp.rs | 4 ++-- chromiumoxide_pdl/Cargo.toml | 4 ++-- chromiumoxide_types/Cargo.toml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chromiumoxide_cdp/Cargo.toml b/chromiumoxide_cdp/Cargo.toml index 88d41422..6c0730a6 100644 --- a/chromiumoxide_cdp/Cargo.toml +++ b/chromiumoxide_cdp/Cargo.toml @@ -19,5 +19,5 @@ tempfile = "3.2.0" [dependencies] chromiumoxide_pdl = { path = "../chromiumoxide_pdl", version = "0.5"} chromiumoxide_types = { path = "../chromiumoxide_types", version = "0.5"} -serde = { version = "1.0.130", features = ["derive"] } -serde_json = "1.0.72" +serde = { version = "1", features = ["derive"] } +serde_json = "1" diff --git a/chromiumoxide_cdp/src/cdp.rs b/chromiumoxide_cdp/src/cdp.rs index ee5d3e27..9956269f 100644 --- a/chromiumoxide_cdp/src/cdp.rs +++ b/chromiumoxide_cdp/src/cdp.rs @@ -102,11 +102,11 @@ pub(crate) mod sealed { self.as_any().is::() } #[inline] - pub fn downcast_arc( + pub fn downcast_arc( self: ::std::sync::Arc, ) -> Result<::std::sync::Arc, ::std::sync::Arc> where - T: ::std::any::Any + Send + Sync, + T: ::std::any::Any + Send + Sync + SealedEvent, { if self.is::() { Ok(ArcAny::into_any_arc(self).downcast::().unwrap()) diff --git a/chromiumoxide_pdl/Cargo.toml b/chromiumoxide_pdl/Cargo.toml index c4306712..27c9dbbe 100644 --- a/chromiumoxide_pdl/Cargo.toml +++ b/chromiumoxide_pdl/Cargo.toml @@ -17,7 +17,7 @@ regex = "1.5.4" quote = "1.0.10" proc-macro2 = "1.0.32" heck = "0.4" -serde_json = "1.0.72" -serde = { version = "1.0.130", features = ["derive"] } +serde_json = "1" +serde = { version = "1", features = ["derive"] } chromiumoxide_types = { path = "../chromiumoxide_types", version = "0.5"} either = "1.6.1" diff --git a/chromiumoxide_types/Cargo.toml b/chromiumoxide_types/Cargo.toml index 395983d2..fcdde489 100644 --- a/chromiumoxide_types/Cargo.toml +++ b/chromiumoxide_types/Cargo.toml @@ -11,5 +11,5 @@ readme = "../README.md" include = ["src/**/*", "LICENSE-*"] [dependencies] -serde = { version = "1.0.130", features = ["derive"] } -serde_json = "1.0.72" +serde = { version = "1", features = ["derive"] } +serde_json = "1"