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:
parent
d283352a9a
commit
2221441a4c
1 changed files with 6 additions and 0 deletions
|
@ -158,6 +158,12 @@ impl fmt::Debug for DirEntry {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Clone for DirEntry {
|
||||||
|
fn clone(&self) -> Self {
|
||||||
|
DirEntry(self.0.clone())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cfg_unix! {
|
cfg_unix! {
|
||||||
use crate::os::unix::fs::DirEntryExt;
|
use crate::os::unix::fs::DirEntryExt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue