Ruby: Format rust files

This commit is contained in:
Harry Maclean
2023-03-14 12:31:50 +13:00
parent cd9927cf66
commit f3272239bd
4 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ use std::io::BufRead;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use tree_sitter::{Language, Parser, Range}; use tree_sitter::{Language, Parser, Range};
use ruby_extractor::{diagnostics, extractor, file_paths, trap, node_types}; use ruby_extractor::{diagnostics, extractor, file_paths, node_types, trap};
/** /**
* Gets the number of threads the extractor should use, by reading the * Gets the number of threads the extractor should use, by reading the

View File

@@ -1,7 +1,7 @@
use crate::diagnostics; use crate::diagnostics;
use crate::file_paths; use crate::file_paths;
use crate::trap;
use crate::node_types::{self, EntryKind, Field, NodeTypeMap, Storage, TypeName}; use crate::node_types::{self, EntryKind, Field, NodeTypeMap, Storage, TypeName};
use crate::trap;
use std::collections::BTreeMap as Map; use std::collections::BTreeMap as Map;
use std::collections::BTreeSet as Set; use std::collections::BTreeSet as Set;
use std::fmt; use std::fmt;

View File

@@ -1,6 +1,6 @@
use std::collections::BTreeSet; use std::collections::BTreeSet;
use crate::{node_types, generator::ql}; use crate::{generator::ql, node_types};
/// Creates the hard-coded `AstNode` class that acts as a supertype of all /// Creates the hard-coded `AstNode` class that acts as a supertype of all
/// classes we generate. /// classes we generate.

View File

@@ -1,6 +1,6 @@
pub mod generator;
pub mod node_types;
pub mod trap;
pub mod diagnostics; pub mod diagnostics;
pub mod extractor; pub mod extractor;
pub mod file_paths; pub mod file_paths;
pub mod generator;
pub mod node_types;
pub mod trap;