Skip to content

Commit 93e047e

Browse files
committed
[library/std pal::safaos fs]: implement File::duplicate
1 parent ddd7d67 commit 93e047e

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/pal/safaos

1 file changed

+1
-1
lines changed

library/std/src/sys/pal/safaos/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl File {
318318
}
319319

320320
pub fn duplicate(&self) -> io::Result<File> {
321-
unsupported()
321+
Ok(Self(self.0.clone()))
322322
}
323323

324324
pub fn set_permissions(&self, _perm: FilePermissions) -> io::Result<()> {

0 commit comments

Comments
 (0)