diff --git a/Cargo.lock b/Cargo.lock index 6b6a5ae..e1db343 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1176,9 +1176,9 @@ dependencies = [ [[package]] name = "treereduce" -version = "0.2.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88f52e6af7073d1baf35773b1432e457e414c4bf35848c049a34b3a22c1ede02" +checksum = "9fd121f11f99660017a0bde6d4414a6a13c159f6746c59688edc57d54ff8d08b" dependencies = [ "log", "regex", diff --git a/Cargo.toml b/Cargo.toml index 1289d40..18d1ad7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] diff --git a/src/main.rs b/src/main.rs index 9b7e2e1..3c3e34a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -270,9 +270,9 @@ fn reduce(rs: &str, jobs: usize, chk: CmdCheck) -> Result> { }; 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")?;