From f3272239bd757522a35c4595cbe8ed9906a63148 Mon Sep 17 00:00:00 2001 From: Harry Maclean Date: Tue, 14 Mar 2023 12:31:50 +1300 Subject: [PATCH] Ruby: Format rust files --- ruby/extractor/src/bin/extractor.rs | 2 +- ruby/extractor/src/extractor.rs | 2 +- ruby/extractor/src/generator/ql_gen.rs | 2 +- ruby/extractor/src/lib.rs | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruby/extractor/src/bin/extractor.rs b/ruby/extractor/src/bin/extractor.rs index 5609560bd42..ed14c41919a 100644 --- a/ruby/extractor/src/bin/extractor.rs +++ b/ruby/extractor/src/bin/extractor.rs @@ -11,7 +11,7 @@ use std::io::BufRead; use std::path::{Path, PathBuf}; 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 diff --git a/ruby/extractor/src/extractor.rs b/ruby/extractor/src/extractor.rs index 9c3afdc956d..59049bc789c 100644 --- a/ruby/extractor/src/extractor.rs +++ b/ruby/extractor/src/extractor.rs @@ -1,7 +1,7 @@ use crate::diagnostics; use crate::file_paths; -use crate::trap; use crate::node_types::{self, EntryKind, Field, NodeTypeMap, Storage, TypeName}; +use crate::trap; use std::collections::BTreeMap as Map; use std::collections::BTreeSet as Set; use std::fmt; diff --git a/ruby/extractor/src/generator/ql_gen.rs b/ruby/extractor/src/generator/ql_gen.rs index ff2d6a03913..4407cbdd32e 100644 --- a/ruby/extractor/src/generator/ql_gen.rs +++ b/ruby/extractor/src/generator/ql_gen.rs @@ -1,6 +1,6 @@ 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 /// classes we generate. diff --git a/ruby/extractor/src/lib.rs b/ruby/extractor/src/lib.rs index dfa05c30ef5..88c54864f4b 100644 --- a/ruby/extractor/src/lib.rs +++ b/ruby/extractor/src/lib.rs @@ -1,6 +1,6 @@ -pub mod generator; -pub mod node_types; -pub mod trap; pub mod diagnostics; pub mod extractor; pub mod file_paths; +pub mod generator; +pub mod node_types; +pub mod trap;