From adfa758a033dd07bfa755632b88b93d39ac09cc6 Mon Sep 17 00:00:00 2001 From: Ken Chou Date: Wed, 21 Aug 2024 12:00:42 +0800 Subject: [PATCH] Replace slab_tree with nary_tree because the former is no longer maintained. --- Cargo.toml | 2 +- src/p2tree.rs | 2 +- src/tprint.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7678996..7935c76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,10 +12,10 @@ dirs-next = "2.0.0" fancy-regex = "0.13.0" itertools = "0.13.0" md-5 = { version = "0.10.6", features = ["md5-asm"] } +nary_tree = "0.4.3" quick-error = "2.0.1" serde = { version = "1.0.204", features = ["derive"] } serde_yaml = "0.9.34" -slab_tree = "0.3.2" walkdir = "2.5.0" [profile.release] diff --git a/src/p2tree.rs b/src/p2tree.rs index be8bfb8..8067f24 100644 --- a/src/p2tree.rs +++ b/src/p2tree.rs @@ -2,7 +2,7 @@ use std::path::{Path,PathBuf}; use std::collections::HashMap; use std::fs::read_link; -use slab_tree::{NodeId,TreeBuilder,Tree}; +use nary_tree::{NodeId,TreeBuilder,Tree}; use colored::*; use crate::data::Operation; diff --git a/src/tprint.rs b/src/tprint.rs index 7178b03..0cec8f0 100644 --- a/src/tprint.rs +++ b/src/tprint.rs @@ -1,4 +1,4 @@ -use slab_tree::{NodeRef, Tree}; +use nary_tree::{NodeRef, Tree}; const GLYPH_TREE_SPACE: &str = " "; const GLYPH_TREE_BRANCH: &str = "│ ";