Skip to content

Commit c09bb39

Browse files
authored
Merge pull request #164 from orxfun/new-pinned-vector-versions
upgrade to new pinned vec and con iter versions
2 parents c54bf27 + 4e096a0 commit c09bb39

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "orx-tree"
3-
version = "1.7.1"
3+
version = "1.8.0"
44
edition = "2024"
55
authors = ["orxfun <[email protected]>"]
66
description = "A beautiful tree 🌳 with convenient, efficient, parallelizable growth, mutation and traversal features."
@@ -12,11 +12,11 @@ categories = ["data-structures", "algorithms", "rust-patterns", "no-std"]
1212
[dependencies]
1313
orx-iterable = { version = "1.3.0", default-features = false }
1414
orx-pseudo-default = { version = "2.1.0", default-features = false }
15-
orx-pinned-vec = "3.16.0"
15+
orx-pinned-vec = { version = "3.16.0", default-features = false }
1616
orx-self-or = "1.2.0"
1717
serde = { version = "1.0.219", optional = true, default-features = false }
1818
orx-split-vec = { version = "3.17.0", default-features = false }
19-
orx-selfref-col = { version = "2.10.0", default-features = false }
19+
orx-selfref-col = { version = "2.9.0", default-features = false }
2020
orx-concurrent-iter = { version = "2.1.0", default-features = false }
2121
orx-parallel = { version = "2.1.0", default-features = false, optional = true }
2222

src/common_traits/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ where
244244
false => '├',
245245
};
246246

247-
write!(f, "{}", first_depth_char)?;
247+
write!(f, "{first_depth_char}")?;
248248
write!(f, "──")?;
249249

250250
writeln!(f, "{}", node.data().to_string().as_str())?;

src/common_traits/serde.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ where
105105
let (depth, value): (usize, V::Item) = x;
106106
if depth != 0 {
107107
return err(format!(
108-
"First element of DepthFirstSequence (root of the tree) must have depth 0; however, received a depth of {}. Following is an example valid sequence of (depth, value) pairs: [[0, 0], [1, 1], [2, 3], [3, 6], [1, 2], [2, 4], [2, 5], [3, 7]].",
109-
depth
108+
"First element of DepthFirstSequence (root of the tree) must have depth 0; however, received a depth of {depth}. Following is an example valid sequence of (depth, value) pairs: [[0, 0], [1, 1], [2, 3], [3, 6], [1, 2], [2, 4], [2, 5], [3, 7]].",
110109
));
111110
}
112111
tree.push_root(value);
@@ -120,8 +119,7 @@ where
120119
true => {
121120
if depth > current_depth + 1 {
122121
return err(format!(
123-
"Let d1 and d2 be two consecutive depths in the depth-first sequence. Then, (i) d2=d1+1, (ii) d2=d1 or (iii) d2<d1 are valid cases. However, received the invalid case where d2>d1+1 (d1={}, d2={}). Please see DepthFirstSequenceError documentation for details. Following is an example valid sequence of (depth, value) pairs: [[0, 0], [1, 1], [2, 3], [3, 6], [1, 2], [2, 4], [2, 5], [3, 7]].",
124-
current_depth, depth
122+
"Let d1 and d2 be two consecutive depths in the depth-first sequence. Then, (i) d2=d1+1, (ii) d2=d1 or (iii) d2<d1 are valid cases. However, received the invalid case where d2>d1+1 (d1={current_depth}, d2={depth}). Please see DepthFirstSequenceError documentation for details. Following is an example valid sequence of (depth, value) pairs: [[0, 0], [1, 1], [2, 3], [3, 6], [1, 2], [2, 4], [2, 5], [3, 7]].",
125123
));
126124
}
127125
}

0 commit comments

Comments
 (0)