Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Aug 21, 2023
1 parent 6b45fab commit 8b3d649
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions car-mirror/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,14 @@ impl From<PullRequest> for ReceiverState {
}
}

impl Into<PushResponse> for ReceiverState {
fn into(self) -> PushResponse {
impl From<ReceiverState> for PushResponse {
fn from(receiver_state: ReceiverState) -> PushResponse {
let ReceiverState {
missing_subgraph_roots,
have_cids_bloom,
} = self;
} = receiver_state;

let (bloom_k, bloom) = Self::bloom_serialize(have_cids_bloom);
let (bloom_k, bloom) = ReceiverState::bloom_serialize(have_cids_bloom);

PushResponse {
subgraph_roots: missing_subgraph_roots,
Expand All @@ -260,14 +260,14 @@ impl Into<PushResponse> for ReceiverState {
}
}

impl Into<PullRequest> for ReceiverState {
fn into(self) -> PullRequest {
impl From<ReceiverState> for PullRequest {
fn from(receiver_state: ReceiverState) -> PullRequest {
let ReceiverState {
missing_subgraph_roots,
have_cids_bloom,
} = self;
} = receiver_state;

let (bloom_k, bloom) = Self::bloom_serialize(have_cids_bloom);
let (bloom_k, bloom) = ReceiverState::bloom_serialize(have_cids_bloom);

PullRequest {
resources: missing_subgraph_roots,
Expand Down

0 comments on commit 8b3d649

Please sign in to comment.