diff options
Diffstat (limited to 'src/batchmode.rs')
-rw-r--r-- | src/batchmode.rs | 4 |
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:?}") }, |