Skip to content

Commit

Permalink
chore(clippy): fix cdp multiple bound locations downcast arc
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed May 28, 2024
1 parent 8bea6e2 commit 3d78fa1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions chromiumoxide_cdp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions chromiumoxide_cdp/src/cdp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ pub(crate) mod sealed {
self.as_any().is::<T>()
}
#[inline]
pub fn downcast_arc<T: SealedEvent>(
pub fn downcast_arc<T>(
self: ::std::sync::Arc<Self>,
) -> Result<::std::sync::Arc<T>, ::std::sync::Arc<Self>>
where
T: ::std::any::Any + Send + Sync,
T: ::std::any::Any + Send + Sync + SealedEvent,
{
if self.is::<T>() {
Ok(ArcAny::into_any_arc(self).downcast::<T>().unwrap())
Expand Down
4 changes: 2 additions & 2 deletions chromiumoxide_pdl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions chromiumoxide_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3d78fa1

Please sign in to comment.