Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 7bcb5c1

Browse files
author
Hendrik van Antwerpen
committed
Fix obsolete to_json call
1 parent cd09f9d commit 7bcb5c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tree-sitter-stack-graphs/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cli = [
2929
"env_logger",
3030
"indoc",
3131
"pathdiff",
32+
"serde_json",
3233
"stack-graphs/json",
3334
"time",
3435
"tree-sitter-config",
@@ -50,6 +51,7 @@ once_cell = "1"
5051
pathdiff = { version = "0.2.1", optional = true }
5152
regex = "1"
5253
rust-ini = "0.18"
54+
serde_json = { version="1.0", optional=true }
5355
stack-graphs = { version="0.10", path="../stack-graphs" }
5456
thiserror = "1.0"
5557
time = { version = "0.3", optional = true }

tree-sitter-stack-graphs/src/cli/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl TestArgs {
424424
graph: &StackGraph,
425425
filter: &dyn Filter,
426426
) -> anyhow::Result<()> {
427-
let json = graph.to_json(filter).to_string_pretty()?;
427+
let json = serde_json::to_string_pretty(&graph.to_serializable_filter(filter))?;
428428
if let Some(dir) = path.parent() {
429429
std::fs::create_dir_all(dir)?;
430430
}

0 commit comments

Comments
 (0)