feat: Implement Clone trait for DirEntry

split-by-pattern
k-nasa 5 years ago
parent d283352a9a
commit 2221441a4c

@ -158,6 +158,12 @@ impl fmt::Debug for DirEntry {
}
}
impl Clone for DirEntry {
fn clone(&self) -> Self {
DirEntry(self.0.clone())
}
}
cfg_unix! {
use crate::os::unix::fs::DirEntryExt;

Loading…
Cancel
Save