Use use declarations rather than '::std::...' names.

This is what most of the rest of the codebase does, so this patch just
tidies up a few additional places.
This commit is contained in:
Dan Gohman
2018-04-19 13:14:12 -07:00
parent acabcc5c8f
commit d72706c478
6 changed files with 24 additions and 13 deletions

View File

@@ -3,6 +3,8 @@
use super::{Forest, Node, NodeData};
use entity::PrimaryMap;
use std::ops::{Index, IndexMut};
#[cfg(test)]
use std::fmt;
/// A pool of nodes, including a free list.
pub(super) struct NodePool<F: Forest> {
@@ -74,8 +76,8 @@ impl<F: Forest> NodePool<F> {
/// Verify the consistency of the tree rooted at `node`.
pub fn verify_tree(&self, node: Node, comp: &F::Comparator)
where
NodeData<F>: ::std::fmt::Display,
F::Key: ::std::fmt::Display,
NodeData<F>: fmt::Display,
F::Key: fmt::Display,
{
use super::Comparator;
use entity::SparseSet;