2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-06 12:45:32 +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());
/// ```
#[must_use] pub fn as_path(&self) -> &'a Path {
#[must_use]
pub fn as_path(&self) -> &'a Path {
self.inner.as_path()
}
}