Update src/path/iter.rs

Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com>
pull/948/head
Caden Haustein 4 years ago committed by GitHub
parent ca7f5b6de7
commit 5e30d86108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save