Fix or disable all failing tests. Fix all cargo clippy warnings

This commit is contained in:
Igor Katson 2021-10-18 16:38:43 +01:00
parent 3a64254971
commit b2fb4729c7
11 changed files with 31 additions and 24 deletions

View file

@ -539,7 +539,7 @@ mod tests {
transaction_id,
version,
ip,
} = dbg!(bprotocol::deserialize_message::<ByteBuf>(&data).unwrap());
} = dbg!(bprotocol::deserialize_message::<ByteBuf>(data).unwrap());
let mut buf = Vec::new();
bprotocol::serialize_message(&mut buf, transaction_id, version, ip, kind).unwrap();

View file

@ -4,8 +4,8 @@ mod persistence;
mod routing_table;
mod utils;
pub use dht::DhtStats;
pub use dht::{Dht, DhtConfig};
pub use crate::dht::DhtStats;
pub use crate::dht::{Dht, DhtConfig};
pub use librqbit_core::id20::Id20;
pub use persistence::{PersistentDht, PersistentDhtConfig};

View file

@ -630,6 +630,6 @@ mod tests {
fn serialize_deserialize_routing_table() {
let table = generate_table(Some(1000));
let v = serde_json::to_vec(&table).unwrap();
let detable: RoutingTable = serde_json::from_reader(Cursor::new(v)).unwrap();
let _: RoutingTable = serde_json::from_reader(Cursor::new(v)).unwrap();
}
}