mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 09:31:20 +00:00
Update protocols and transport to 2018 edition (#875)
Update the protocols and transport subdirectories to the 2018 edition. NB: The websocket transport cannot be moved to 2018 edition due to websocket-rs's use of the keyword async as the name of a module.
This commit is contained in:
committed by
Pierre Krieger
parent
a806c4ac08
commit
6d24596f9f
@ -323,7 +323,8 @@ impl<'a, Id: 'a, Val: 'a> Bucket<'a, Id, Val> {
|
||||
mod tests {
|
||||
extern crate rand;
|
||||
use self::rand::random;
|
||||
use kbucket::{KBucketsPeerId, KBucketsTable, UpdateOutcome, MAX_NODES_PER_BUCKET};
|
||||
use crate::kbucket::{KBucketsPeerId, KBucketsTable};
|
||||
use crate::kbucket::{UpdateOutcome, MAX_NODES_PER_BUCKET};
|
||||
use multihash::{Multihash, Hash};
|
||||
use std::thread;
|
||||
use std::time::Duration;
|
||||
|
Reference in New Issue
Block a user