2
0
Fork 1
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:
Caden Haustein 2021-06-01 19:23:07 +00:00 committed by GitHub
parent ca7f5b6de7
commit 5e30d86108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
} }
} }