Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed May 11, 2024
1 parent 7740a8f commit 41244ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/indent.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::comments::*;
use crate::regexes::*;
use crate::TAB;
use crate::Cli;
use crate::TAB;
use core::cmp::max;

const OPENS: [char; 3] = ['(', '[', '{'];
Expand Down
8 changes: 7 additions & 1 deletion src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ pub struct Cli {

impl Cli {
pub fn new() -> Self {
Cli{indent: false, print: false, verbose: false, debug: false, filenames: vec![]}
Cli {
indent: false,
print: false,
verbose: false,
debug: false,
filenames: vec![],
}
}
}
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod tests {

use crate::apply;
use crate::Cli;
use crate::format_file;
use crate::rstest;
use crate::template;
use crate::Cli;
use std::fs;

const YELLOW: &str = "\x1b[33m\x1b[1m";
Expand Down

0 comments on commit 41244ae

Please sign in to comment.