Skip to content

Commit a3b1763

Browse files
committed
Port open_parent_dir to fs_utf8 and cap-async-std.
1 parent ae8c65e commit a3b1763

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cap-async-std/src/fs_utf8/dir.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,7 @@ impl Dir {
619619
///
620620
/// This function accesses a directory outside of the `self` subtree.
621621
#[inline]
622-
pub async fn open_parent_dir<P: AsRef<Utf8Path>>(
623-
&self,
624-
ambient_authority: AmbientAuthority,
625-
) -> io::Result<Self> {
622+
pub async fn open_parent_dir(&self, ambient_authority: AmbientAuthority) -> io::Result<Self> {
626623
self.cap_std
627624
.open_parent_dir(ambient_authority)
628625
.await

cap-std/src/fs_utf8/dir.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,7 @@ impl Dir {
604604
///
605605
/// This function accesses a directory outside of the `self` subtree.
606606
#[inline]
607-
pub fn open_parent_dir<P: AsRef<Utf8Path>>(
608-
&self,
609-
ambient_authority: AmbientAuthority,
610-
) -> io::Result<Self> {
607+
pub fn open_parent_dir(&self, ambient_authority: AmbientAuthority) -> io::Result<Self> {
611608
self.cap_std
612609
.open_parent_dir(ambient_authority)
613610
.map(Self::from_cap_std)

0 commit comments

Comments
 (0)