diff --git a/src/uu/ls/src/ls.rs b/src/uu/ls/src/ls.rs
index 3cfb0ad2c..fcb0b28ff 100644
--- a/src/uu/ls/src/ls.rs
+++ b/src/uu/ls/src/ls.rs
@@ -21,6 +21,7 @@ use lscolors::LsColors;
use number_prefix::NumberPrefix;
use once_cell::unsync::OnceCell;
use quoting_style::{escape_name, QuotingStyle};
+use std::ffi::OsString;
#[cfg(windows)]
use std::os::windows::fs::MetadataExt;
use std::{
@@ -1173,7 +1174,7 @@ struct PathData {
md: OnceCell