Skip to content

Bump to current Rust edition 2021. #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "ego-tree"
edition = "2021"
version = "0.7.0"
description = "Vec-backed ID-tree"
keywords = ["tree", "vec", "id", "index"]
Expand Down
2 changes: 1 addition & 1 deletion src/iter.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ macro_rules! tree {

impl<T: Debug> Debug for Tree<T> {
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() {
Expand Down Expand Up @@ -760,8 +760,8 @@ mod display;

impl<T: Display> Display for Tree<T> {
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);

Expand Down
Loading