Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Mar 6, 2024
1 parent 41d9563 commit 7a63bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions ethers-contract/tests/it/abigen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,13 +746,14 @@ fn can_generate_large_tuple_types() {
fn can_generate_large_tuple_array() {
abigen!(LargeArray, "./tests/solidity-contracts/large-array.json");

impl Default for CallWithLongArrayCall {
fn default() -> Self {
Self { long_array: [0; 128] }
const _: () = {
impl Default for CallWithLongArrayCall {
fn default() -> Self {
Self { long_array: [0; 128] }
}
}
}
};

let _call = CallWithLongArrayCall::default();
assert_call::<CallWithLongArrayCall>();
}

Expand Down
4 changes: 2 additions & 2 deletions ethers-providers/src/rpc/transports/legacy_ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ impl Debug for Ws {
impl Ws {
/// Initializes a new WebSocket Client, given a Stream/Sink Websocket implementer.
/// The websocket connection must be initiated separately.
pub fn new<S: 'static>(ws: S) -> Self
pub fn new<S>(ws: S) -> Self
where
S: Send + Sync + Stream<Item = WsStreamItem> + Sink<Message, Error = WsError> + Unpin,
S: Send + Sync + Stream<Item = WsStreamItem> + Sink<Message, Error = WsError> + Unpin + 'static,
{
let (sink, stream) = mpsc::unbounded();
// Spawn the server
Expand Down

0 comments on commit 7a63bdb

Please sign in to comment.