Skip to content

Commit

Permalink
fix(network): fix a couple minor lints in papyrus (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
matan-starkware authored Aug 5, 2024
1 parent cfbf258 commit fe93a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/papyrus_network/src/discovery/kad_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl<TStore: kad::store::RecordStore + Send + 'static> BridgedBehaviour for kad:
mixed_behaviour::ToOtherBehaviourEvent::PeerManager(
peer_manager::ToOtherBehaviourEvent::PeerBlacklisted { peer_id },
) => {
self.remove_peer(&peer_id);
self.remove_peer(peer_id);
}
_ => {}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_test_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ pub fn validate_load_and_dump<T: Serialize + for<'a> Deserialize<'a>>(path_in_re
let json_value = read_json_file(path_in_resource_dir);
let load_result = serde_json::from_value::<T>(json_value.clone());
assert!(load_result.is_ok(), "error: {:?}", load_result.err());
let dump_result = serde_json::to_value(&(load_result.unwrap()));
let dump_result = serde_json::to_value(load_result.unwrap());
assert!(dump_result.is_ok(), "error: {:?}", dump_result.err());
assert_eq!(json_value, dump_result.unwrap());
}
Expand Down

0 comments on commit fe93a3b

Please sign in to comment.