From c1c0ea22dec69273523d3dd4c38efd616b9038d1 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 346b77a..9c8b7e4 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. /// /// ```