# HG changeset patch # User Yuya Nishihara # Date 2019-08-16 09:31:17 # Node ID 04c3b76fa7a3a0cc0c44c282be75e2ffddcd6abc # Parent ac6121a24f277accbb8446c8a21a459066db118f rust-discovery: remove useless extern crate diff --git a/rust/hg-core/src/discovery.rs b/rust/hg-core/src/discovery.rs --- a/rust/hg-core/src/discovery.rs +++ b/rust/hg-core/src/discovery.rs @@ -10,17 +10,15 @@ //! This is a Rust counterpart to the `partialdiscovery` class of //! `mercurial.setdiscovery` -extern crate rand; -extern crate rand_pcg; -use self::rand::seq::SliceRandom; -use self::rand::{thread_rng, RngCore, SeedableRng}; use super::{Graph, GraphError, Revision, NULL_REVISION}; use crate::ancestors::MissingAncestors; use crate::dagops; +use rand::seq::SliceRandom; +use rand::{thread_rng, RngCore, SeedableRng}; use std::cmp::{max, min}; use std::collections::{HashMap, HashSet, VecDeque}; -type Rng = self::rand_pcg::Pcg32; +type Rng = rand_pcg::Pcg32; pub struct PartialDiscovery { target_heads: Option>,