Skip to content

Commit 60b676c

Browse files
committed
fix: fmt
1 parent 4f278a1 commit 60b676c

19 files changed

Lines changed: 37 additions & 31 deletions

cli/ai_instructions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use derive_more::Display;
33
use pipe_trait::Pipe;
44
use std::{
55
fmt,
6-
fs::{read_to_string, File},
6+
fs::{File, read_to_string},
77
io::{self, Write},
88
path::{Path, PathBuf},
99
process::ExitCode,

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl App {
167167
// Hardlinks deduplication doesn't work properly if there are more than 1 paths pointing to
168168
// the same tree or if a path points to a subtree of another path. Therefore, we must find
169169
// and remove such overlapping paths before they cause problems.
170-
use overlapping_arguments::{remove_overlapping_paths, RealApi};
170+
use overlapping_arguments::{RealApi, remove_overlapping_paths};
171171
remove_overlapping_paths::<RealApi>(&mut self.args.files);
172172
}
173173

src/app/hdd/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{any_path_is_in_hdd, path_is_in_hdd, DiskApi, FsApi};
1+
use super::{DiskApi, FsApi, any_path_is_in_hdd, path_is_in_hdd};
22
use pipe_trait::Pipe;
33
use pretty_assertions::assert_eq;
44
use std::{

src/app/hdd/test_linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{parse_block_device_name, reclassify_virtual_hdd, FsApi, VIRTUAL_DISK_KIND};
1+
use super::{FsApi, VIRTUAL_DISK_KIND, parse_block_device_name, reclassify_virtual_hdd};
22
use pipe_trait::Pipe;
33
use pretty_assertions::assert_eq;
44
use std::{

src/app/hdd/test_linux_smoke.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{extract_block_device_name, is_virtual_block_device, RealFs};
1+
use super::{RealFs, extract_block_device_name, is_virtual_block_device};
22

33
/// On hosts with a `/sys/block/vda` device, exercises the detection
44
/// pipeline without panicking. Silently skips if `vda` does not exist.

src/app/overlapping_arguments/test_remove_overlapping_paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{remove_overlapping_paths, Api};
1+
use super::{Api, remove_overlapping_paths};
22
use normalize_path::NormalizePath;
33
use pipe_trait::Pipe;
44
use pretty_assertions::assert_eq;

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use clap::{ColorChoice, Parser};
1313
use derive_setters::Setters;
1414
use smart_default::SmartDefault;
1515
use std::path::PathBuf;
16-
use terminal_size::{terminal_size, Width};
16+
use terminal_size::{Width, terminal_size};
1717
use text_block_macros::text_block;
1818

1919
/// The CLI arguments.

src/bytes_format.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub enum BytesFormat {
5151
impl BytesFormat {
5252
/// Format a quantity of bytes according to the settings.
5353
pub fn format(self, bytes: u64) -> Output {
54-
use formatter::{BINARY, METRIC};
5554
use BytesFormat::*;
55+
use formatter::{BINARY, METRIC};
5656
match self {
5757
PlainNumber => Output::PlainNumber(bytes),
5858
MetricUnits => METRIC.parse_value(bytes).pipe(Output::Units),

src/bytes_format/formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::{scale_base, ParsedValue};
1+
use super::{ParsedValue, scale_base};
22
use std::fmt::Debug;
33

44
/// Format a quantity of bytes.

src/fs_tree_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::{
44
get_size::GetSize,
55
hardlink::{RecordHardlinks, RecordHardlinksArgument},
66
os_string_display::OsStringDisplay,
7-
reporter::{error_report::Operation::*, ErrorReport, Event, Reporter},
7+
reporter::{ErrorReport, Event, Reporter, error_report::Operation::*},
88
size,
99
tree_builder::{Info, TreeBuilder},
1010
};

0 commit comments

Comments
 (0)