summaryrefslogtreecommitdiff
path: root/src/batchmode.rs
diff options
context:
space:
mode:
authorstuebinm2024-04-17 15:30:39 +0200
committerstuebinm2024-04-17 15:30:39 +0200
commit93d72079a86849e0453c9130c73e1702e3d66f69 (patch)
tree7a473d7c33fa9f89a649a40b7fbdc03475681c9d /src/batchmode.rs
parentcf418ce76679f019834e4b6ff2cbafc6d40c180e (diff)
add simple tests
Diffstat (limited to 'src/batchmode.rs')
-rw-r--r--src/batchmode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/batchmode.rs b/src/batchmode.rs
index 3e83694..aae74b5 100644
--- a/src/batchmode.rs
+++ b/src/batchmode.rs
@@ -2,7 +2,7 @@ use std::{path::PathBuf, fs, sync::{Arc, Mutex}};
use rowan::ast::AstNode;
use threadpool::ThreadPool;
-use crate::{status_reporter::*, queries::Query, parse_nexp, apply_changes};
+use crate::{status_reporter::*, queries::Query, parse_nixfile, changes::apply_changes};
#[allow(unreachable_code, unused)]
@@ -10,7 +10,7 @@ pub fn batchmode(tasks: Vec<PathBuf>, query: Query, debug: bool) {
fn do_task(path: PathBuf, query: Query, debug: bool) -> anyhow::Result<(PathBuf, Option<String>)> {
- let (content, nexp) = match parse_nexp(&path) {
+ let (content, nexp) = match parse_nixfile(&path) {
Err(e) => {
anyhow::bail!("could not parse file {path:?}")
},