mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-09 01:46:42 +00:00
Update src/path/iter.rs
Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
ca7f5b6de7
commit
5e30d86108
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ impl<'a> Iter<'a> {
|
||||||
///
|
///
|
||||||
/// assert_eq!(Path::new("foo/bar.txt"), iter.as_path());
|
/// assert_eq!(Path::new("foo/bar.txt"), iter.as_path());
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use] pub fn as_path(&self) -> &'a Path {
|
#[must_use]
|
||||||
|
pub fn as_path(&self) -> &'a Path {
|
||||||
self.inner.as_path()
|
self.inner.as_path()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue