Skip to content

Commit 1e00bd1

Browse files
committed
style: fix import order.
1 parent 674bc30 commit 1e00bd1

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

cli/src/commands/check.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::path::PathBuf;
22
use std::sync::atomic::{AtomicUsize, Ordering};
33
use std::{fs, io, process};
44

5-
use crate::walk::StateComponent;
65
use anyhow::Context;
76
use clap::{ArgAction, ArgMatches, Command, arg, value_parser};
87
use crossterm::tty::IsTty;
@@ -13,6 +12,7 @@ use yara_x_parser::ast::MetaValue;
1312

1413
use crate::config::{Config, MetaValueType};
1514
use crate::walk::Message;
15+
use crate::walk::StateComponent;
1616
use crate::{help, walk};
1717

1818
pub fn check() -> Command {

cli/src/commands/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::io::Write;
77
use std::path::PathBuf;
88
use std::sync::atomic::{AtomicUsize, Ordering};
99

10-
use crate::walk::StateComponent;
1110
use anyhow::Context;
1211
use clap::{Arg, ArgAction, ArgMatches, Command, arg, value_parser};
1312
use yansi::Color::{Green, Red, Yellow};
@@ -19,6 +18,7 @@ use crate::commands::{
1918
};
2019
use crate::config::Config;
2120
use crate::walk::Message;
21+
use crate::walk::StateComponent;
2222
use crate::{help, walk};
2323

2424
pub fn fix() -> Command {

cli/src/commands/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use std::fs;
2424
use std::io::stdout;
2525
use std::path::PathBuf;
2626

27-
use crate::walk::StateComponent;
2827
use anyhow::{Context, anyhow, bail};
2928
use clap::{
3029
Arg, ArgAction, ArgMatches, Command, arg, command, crate_authors,
@@ -37,8 +36,10 @@ use yansi::Color::Green;
3736
use yansi::Paint;
3837

3938
use crate::config::Config;
39+
use crate::walk::StateComponent;
4040
use crate::walk::Walker;
4141
use crate::{APP_HELP_TEMPLATE, commands, help};
42+
4243
use yara_x::{Compiler, Rules, SourceCode};
4344

4445
pub fn command(name: &'static str) -> Command {

cli/src/commands/scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::sync::Mutex;
66
use std::sync::atomic::{AtomicUsize, Ordering};
77
use std::time::{Duration, Instant};
88

9-
use crate::walk::StateComponent;
109
use anyhow::{Context, Error, bail};
1110
use clap::{
1211
Arg, ArgAction, ArgMatches, Command, ValueEnum, arg, value_parser,
@@ -25,6 +24,7 @@ use crate::commands::{
2524
truncate_with_ellipsis,
2625
};
2726
use crate::walk::Message;
27+
use crate::walk::StateComponent;
2828
use crate::{help, walk};
2929

3030
#[derive(Clone, ValueEnum)]

0 commit comments

Comments
 (0)