Skip to content

Commit 791fa94

Browse files
authored
Merge pull request #31 from adamreichold/bump-edition
Bump to current Rust edition 2021.
2 parents 24ee7eb + 121abac commit 791fa94

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[package]
22
name = "ego-tree"
3+
edition = "2021"
34
version = "0.7.0"
45
description = "Vec-backed ID-tree"
56
keywords = ["tree", "vec", "id", "index"]

src/iter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::ops::Range;
22
use std::{slice, vec};
33

4-
use {Node, NodeId, NodeRef, Tree};
4+
use crate::{Node, NodeId, NodeRef, Tree};
55

66
/// Iterator that moves out of a tree in insert order.
77
#[derive(Debug)]

src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ macro_rules! tree {
724724

725725
impl<T: Debug> Debug for Tree<T> {
726726
fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
727-
use iter::Edge;
727+
use crate::iter::Edge;
728728
if f.alternate() {
729729
write!(f, "Tree {{")?;
730730
for edge in self.root().traverse() {
@@ -760,8 +760,8 @@ mod display;
760760

761761
impl<T: Display> Display for Tree<T> {
762762
fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
763-
use display::Indentation;
764-
use iter::Edge;
763+
use crate::display::Indentation;
764+
use crate::iter::Edge;
765765

766766
let mut indent: Indentation = Indentation::new(true);
767767

0 commit comments

Comments
 (0)