2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

feat: Implement Clone trait for DirEntry

This commit is contained in:
k-nasa 2020-01-18 08:36:54 +09:00
parent d283352a9a
commit 2221441a4c

View file

@ -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;