Skip to content

Commit fc2f73b

Browse files
committed
cksum: use div_ceil() from std
1 parent 7fb0f8a commit fc2f73b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/uu/cksum/src/cksum.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use uucore::{
2222
format_usage, help_about, help_section, help_usage,
2323
line_ending::LineEnding,
2424
os_str_as_bytes, show,
25-
sum::{div_ceil, Digest},
25+
sum::Digest,
2626
};
2727

2828
const USAGE: &str = help_usage!("cksum.md");
@@ -124,7 +124,7 @@ where
124124
format!(
125125
"{} {}{}",
126126
sum.parse::<u16>().unwrap(),
127-
div_ceil(sz, options.output_bits),
127+
sz.div_ceil(options.output_bits),
128128
if not_file { "" } else { " " }
129129
),
130130
!not_file,
@@ -134,7 +134,7 @@ where
134134
format!(
135135
"{:0bsd_width$} {:bsd_width$}{}",
136136
sum.parse::<u16>().unwrap(),
137-
div_ceil(sz, options.output_bits),
137+
sz.div_ceil(options.output_bits),
138138
if not_file { "" } else { " " }
139139
),
140140
!not_file,

0 commit comments

Comments
 (0)