Mercurial > hg
changeset 42763:04c3b76fa7a3
rust-discovery: remove useless extern crate
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 16 Aug 2019 18:31:17 +0900 |
parents | ac6121a24f27 |
children | 798b7d4b463e |
files | rust/hg-core/src/discovery.rs |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/discovery.rs Fri Jul 26 01:19:43 2019 +0530 +++ b/rust/hg-core/src/discovery.rs Fri Aug 16 18:31:17 2019 +0900 @@ -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<G: Graph + Clone> { target_heads: Option<Vec<Revision>>,