From b593a8f67e6ef384f5ee885fa4eae58d36202a85 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 3 Nov 2024 11:28:00 +0000 Subject: [PATCH] refactor(fs): use type aliases --- src/fs/dir.rs | 4 ++-- src/fs/file.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fs/dir.rs b/src/fs/dir.rs index 012b2f7..77c068f 100644 --- a/src/fs/dir.rs +++ b/src/fs/dir.rs @@ -3,10 +3,10 @@ use crate::fs::{DirItem, DirItemIterator, Result}; use super::{ path::{DirMarker, PathReal}, - Error, FileMarker, PathMarker, + DirHandle, Error, FileMarker, PathMarker, }; -impl<'base, 'path> PathReal<'base, 'path, DirMarker> { +impl<'base, 'path> DirHandle<'base, 'path> { /// Creates a new, empty directory at the path /// /// Wrapper for [std::fs::create_dir] diff --git a/src/fs/file.rs b/src/fs/file.rs index 5b7c7b4..0fcd63a 100644 --- a/src/fs/file.rs +++ b/src/fs/file.rs @@ -4,10 +4,10 @@ use crate::fs::Result; use super::{ path::{FileMarker, PathReal}, reader::Reader, - Error, + Error, FileHandle, }; -impl<'base, 'path> PathReal<'base, 'path, FileMarker> { +impl<'base, 'path> FileHandle<'base, 'path> { /// Returns a [Reader] for the file. /// /// ```