Skip to content

Commit fc0733b

Browse files
committed
chore: format code
1 parent 1c4421e commit fc0733b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use clap::{Command, CommandFactory};
2-
use clap_complete::{generate_to, Shell};
2+
use clap_complete::{Shell, generate_to};
33
use std::{io::Error, path::Path};
44

55
include!("src/cli.rs");

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::cli::{Cli, RegexArgs};
22
use crate::output::Printer;
3-
use anyhow::{bail, Result};
3+
use anyhow::{Result, bail};
44
use clap::Parser;
55
use regex::Regex;
66
use std::{

src/dumpfile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn dump_to_file(prefix: String, operations: &[Operation]) -> Result<()> {
2222
return Err(Error {
2323
kind: ErrorKind::CreateFile,
2424
value: Some(filename),
25-
})
25+
});
2626
}
2727
};
2828
match serde_json::to_writer_pretty(file, &dump) {
@@ -42,7 +42,7 @@ pub fn read_from_file(filepath: &Path) -> Result<Operations> {
4242
return Err(Error {
4343
kind: ErrorKind::ReadFile,
4444
value: Some(filepath.to_string_lossy().to_string()),
45-
})
45+
});
4646
}
4747
};
4848
let dump: DumpFormat = match serde_json::from_reader(file) {
@@ -51,7 +51,7 @@ pub fn read_from_file(filepath: &Path) -> Result<Operations> {
5151
return Err(Error {
5252
kind: ErrorKind::JsonParse,
5353
value: Some(filepath.to_string_lossy().to_string()),
54-
})
54+
});
5555
}
5656
};
5757
Ok(dump.operations)

src/solver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::error::*;
2-
use crate::fileutils::{is_same_file, PathList};
2+
use crate::fileutils::{PathList, is_same_file};
33
use path_abs::PathAbs;
44
use serde_derive::{Deserialize, Serialize};
55
use std::collections::HashMap;
@@ -162,7 +162,7 @@ fn sort_existing_targets(
162162
return Err(Error {
163163
kind: ErrorKind::SolveOrder,
164164
value: None,
165-
})
165+
});
166166
}
167167
}
168168
}

0 commit comments

Comments
 (0)