Skip to content

Commit

Permalink
Remove dependency on itertools
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Feb 5, 2024
1 parent d3d3a39 commit 16d4d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion backtrace/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ categories = ["asynchronous", "development-tools::debugging"]
async-backtrace-attributes = { version = "0.2", path = "../attributes" }
dashmap = "5.4.0"
futures = "0.3.21"
itertools = "0.10.5"
once_cell = "1.0.0"
pin-project-lite = "0.2"
rustc-hash = "1.1.0"
Expand Down
8 changes: 4 additions & 4 deletions backtrace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ macro_rules! frame {
/// If `wait_for_running_tasks` is `true`, this routine may deadlock if any
/// non-async lock is held which may also be held by a Framed task.
pub fn taskdump_tree(wait_for_running_tasks: bool) -> String {
itertools::join(
tasks().map(|task| task.pretty_tree(wait_for_running_tasks)),
"\n",
)
tasks()
.map(|task| task.pretty_tree(wait_for_running_tasks))
.collect::<Vec<String>>()
.join("\n")
}

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

0 comments on commit 16d4d3f

Please sign in to comment.