diff --git a/Cargo.toml b/Cargo.toml index b1a68b4..422ae04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [package] name = "ego-tree" +edition = "2021" version = "0.7.0" description = "Vec-backed ID-tree" keywords = ["tree", "vec", "id", "index"] diff --git a/src/iter.rs b/src/iter.rs index 7a0e554..274eaa5 100644 --- a/src/iter.rs +++ b/src/iter.rs @@ -1,7 +1,7 @@ use std::ops::Range; use std::{slice, vec}; -use {Node, NodeId, NodeRef, Tree}; +use crate::{Node, NodeId, NodeRef, Tree}; /// Iterator that moves out of a tree in insert order. #[derive(Debug)] diff --git a/src/lib.rs b/src/lib.rs index b4e7fec..967bcb1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -724,7 +724,7 @@ macro_rules! tree { impl Debug for Tree { fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { - use iter::Edge; + use crate::iter::Edge; if f.alternate() { write!(f, "Tree {{")?; for edge in self.root().traverse() { @@ -760,8 +760,8 @@ mod display; impl Display for Tree { fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { - use display::Indentation; - use iter::Edge; + use crate::display::Indentation; + use crate::iter::Edge; let mut indent: Indentation = Indentation::new(true);