summaryrefslogtreecommitdiff
path: root/src/batchmode.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/batchmode.rs')
-rw-r--r--src/batchmode.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/batchmode.rs b/src/batchmode.rs
index 84b0dff..3e83694 100644
--- a/src/batchmode.rs
+++ b/src/batchmode.rs
@@ -2,13 +2,13 @@ use std::{path::PathBuf, fs, sync::{Arc, Mutex}};
use rowan::ast::AstNode;
use threadpool::ThreadPool;
-use crate::{status_reporter::*, queries::{SyntaxNode, Parse}, parse_nexp, apply_changes};
+use crate::{status_reporter::*, queries::Query, parse_nexp, apply_changes};
#[allow(unreachable_code, unused)]
-pub fn batchmode(tasks: Vec<PathBuf>, query: Parse, debug: bool) {
+pub fn batchmode(tasks: Vec<PathBuf>, query: Query, debug: bool) {
- fn do_task(path: PathBuf, query: Parse, debug: bool) -> anyhow::Result<(PathBuf, Option<String>)> {
+ fn do_task(path: PathBuf, query: Query, debug: bool) -> anyhow::Result<(PathBuf, Option<String>)> {
let (content, nexp) = match parse_nexp(&path) {
Err(e) => {