mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
Beta compiler fixes (#5543)
* remove duplicate imports in gossip tests. get rid of duplicate trait bound locations * more double import fixes * cargo fmt
This commit is contained in:
@@ -22,12 +22,8 @@
|
||||
|
||||
use super::*;
|
||||
use crate::subscription_filter::WhitelistSubscriptionFilter;
|
||||
use crate::transform::{DataTransform, IdentityTransform};
|
||||
use crate::types::{RpcOut, RpcReceiver};
|
||||
use crate::ValidationError;
|
||||
use crate::{
|
||||
config::Config, config::ConfigBuilder, types::Rpc, IdentTopic as Topic, TopicScoreParams,
|
||||
};
|
||||
use crate::types::RpcReceiver;
|
||||
use crate::{config::ConfigBuilder, types::Rpc, IdentTopic as Topic};
|
||||
use byteorder::{BigEndian, ByteOrder};
|
||||
use libp2p::core::ConnectedPoint;
|
||||
use rand::Rng;
|
||||
|
||||
@@ -903,7 +903,6 @@ impl std::fmt::Debug for Config {
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::topic::IdentityHash;
|
||||
use crate::types::PeerKind;
|
||||
use crate::Topic;
|
||||
use libp2p::core::UpgradeInfo;
|
||||
use std::collections::hash_map::DefaultHasher;
|
||||
|
||||
@@ -221,9 +221,7 @@ impl MessageCache {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::types::RawMessage;
|
||||
use crate::{IdentTopic as Topic, TopicHash};
|
||||
use libp2p::identity::PeerId;
|
||||
use crate::IdentTopic as Topic;
|
||||
|
||||
fn gen_testm(x: u64, topic: TopicHash) -> (MessageId, RawMessage) {
|
||||
let default_id = |message: &RawMessage| {
|
||||
|
||||
@@ -508,7 +508,6 @@ impl Decoder for GossipsubCodec {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::config::Config;
|
||||
use crate::protocol::{BytesMut, GossipsubCodec, HandlerEvent};
|
||||
use crate::{Behaviour, ConfigBuilder, MessageAuthenticity};
|
||||
use crate::{IdentTopic as Topic, Version};
|
||||
use libp2p::identity::Keypair;
|
||||
|
||||
@@ -212,7 +212,6 @@ impl TopicSubscriptionFilter for RegexSubscriptionFilter {
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::types::SubscriptionAction::*;
|
||||
use std::iter::FromIterator;
|
||||
|
||||
#[test]
|
||||
fn test_filter_incoming_allow_all_with_duplicates() {
|
||||
|
||||
Reference in New Issue
Block a user