We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fbabd commit c8b0a2fCopy full SHA for c8b0a2f
1 file changed
src/uu/ls/src/ls.rs
@@ -2849,7 +2849,8 @@ fn get_block_size(md: &Metadata, config: &Config) -> u64 {
2849
*/
2850
#[cfg(unix)]
2851
{
2852
- let raw_blocks = if md.file_type().is_char_device() || md.file_type().is_block_device() {
+ let ft = md.file_type();
2853
+ let raw_blocks = if ft.is_char_device() || ft.is_block_device() {
2854
0u64
2855
} else {
2856
md.blocks() * 512
0 commit comments