style: format imports

This commit is contained in:
Amaan Qureshi 2024-04-09 13:35:08 -04:00
parent a48054f1ae
commit b35efa8f33
69 changed files with 481 additions and 316 deletions

View file

@ -1,7 +1,7 @@
use std::{ops::Range, str};
use super::random::Rand;
use crate::parse::Edit;
use std::ops::Range;
use std::str;
#[derive(Debug)]
pub struct ReadRecorder<'a> {

View file

@ -1,7 +1,10 @@
use std::{
env, fs,
path::{Path, PathBuf},
};
use anyhow::Context;
use lazy_static::lazy_static;
use std::path::{Path, PathBuf};
use std::{env, fs};
use tree_sitter::Language;
use tree_sitter_highlight::HighlightConfiguration;
use tree_sitter_loader::{CompileConfig, Loader};

View file

@ -5,9 +5,10 @@ pub(super) mod query_helpers;
pub(super) mod random;
pub(super) mod scope_sequence;
use std::env;
use lazy_static::lazy_static;
use rand::Rng;
use std::env;
lazy_static! {
pub static ref LOG_ENABLED: bool = env::var("TREE_SITTER_LOG").is_ok();

View file

@ -1,5 +1,6 @@
use rand::prelude::Rng;
use std::{cmp::Ordering, fmt::Write, ops::Range};
use rand::prelude::Rng;
use tree_sitter::{
Language, Node, Parser, Point, Query, QueryCapture, QueryCursor, QueryMatch, Tree, TreeCursor,
};