Skip to content

Commit

Permalink
Bump treereduce to v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Jul 17, 2023
1 parent cfac744 commit bb80038
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["json"] }
tree-sitter = "0.20"
tree-sitter-rust = "0.20"
treereduce = "0.2.2"
treereduce = "0.3"

[features]
fetch = ["dep:reqwest", "dep:serde"]
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ fn reduce(rs: &str, jobs: usize, chk: CmdCheck) -> Result<Vec<u8>> {
};
let (reduced, _) = treereduce::treereduce_multi_pass(
language,
node_types,
&node_types,
Original::new(tree, rs.as_bytes().to_vec()),
reduce_config,
&reduce_config,
None, // max passes
)
.context("Failed when reducing the program")?;
Expand Down

0 comments on commit bb80038

Please sign in to comment.