Skip to content

Commit 0959d5f

Browse files
committed
feat(fixture): Another subdir route
Fixes the other half of #36
1 parent cf9ae87 commit 0959d5f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/fixture/child.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ impl PathChild for super::TempDir {
4242
}
4343
}
4444

45+
impl PathChild for ChildPath {
46+
fn child<P>(&self, path: P) -> ChildPath
47+
where
48+
P: AsRef<path::Path>,
49+
{
50+
ChildPath::new(self.path().join(path.as_ref()))
51+
}
52+
}
53+
4554
/// A path within a [`TempDir`]
4655
///
4756
/// See Trait Implementations.

0 commit comments

Comments
 (0)