Skip to content

Commit eb77300

Browse files
fornwalljswrenn
authored andcommitted
Remove dependency on itertools
1 parent ef988a0 commit eb77300

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

backtrace/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ categories = ["asynchronous", "development-tools::debugging"]
1414
async-backtrace-attributes = { version = "0.2", path = "../attributes" }
1515
dashmap = "5.4.0"
1616
futures = "0.3.21"
17-
itertools = "0.10.5"
1817
once_cell = "1.0.0"
1918
pin-project-lite = "0.2"
2019
rustc-hash = "1.1.0"

backtrace/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ macro_rules! frame {
168168
/// If `wait_for_running_tasks` is `true`, this routine may deadlock if any
169169
/// non-async lock is held which may also be held by a Framed task.
170170
pub fn taskdump_tree(wait_for_running_tasks: bool) -> String {
171-
itertools::join(
172-
tasks().map(|task| task.pretty_tree(wait_for_running_tasks)),
173-
"\n",
174-
)
171+
tasks()
172+
.map(|task| task.pretty_tree(wait_for_running_tasks))
173+
.collect::<Vec<String>>()
174+
.join("\n")
175175
}
176176

177177
/// Produces a backtrace starting at the currently-active frame (if any).

0 commit comments

Comments
 (0)