Skip to content

Commit 4e6f084

Browse files
committed
refactor(device): rename from_1fs to from_one_file_system
Align with the existing naming convention used by `Direction::from_top_down` and `BarAlignment::from_align_right`. https://claude.ai/code/session_01LfpnUZrgq93MVZgA3KVqE6
1 parent 077cbf0 commit 4e6f084

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl App {
308308
bar_alignment: BarAlignment::from_align_right(align_right),
309309
size_getter: <$size_getter as GetSizeUtils>::INSTANCE,
310310
hardlinks_handler: <$size_getter as CreateHardlinksHandler<{ cfg!(unix) && $hardlinks }, $progress>>::create_hardlinks_handler(),
311-
device_boundary: DeviceBoundary::from_1fs(one_file_system),
311+
device_boundary: DeviceBoundary::from_one_file_system(one_file_system),
312312
reporter: <$size_getter as CreateReporter<$progress>>::create_reporter(report_error),
313313
bytes_format: <$size_getter as GetSizeUtils>::formatter(bytes_format),
314314
files,

src/device.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub enum DeviceBoundary {
88
impl DeviceBoundary {
99
/// Derive device boundary from `--one-file-system`.
1010
#[cfg(feature = "cli")]
11-
pub(crate) fn from_1fs(one_file_system: bool) -> Self {
11+
pub(crate) fn from_one_file_system(one_file_system: bool) -> Self {
1212
match one_file_system {
1313
false => DeviceBoundary::Cross,
1414
true => DeviceBoundary::Stay,

0 commit comments

Comments
 (0)