summaryrefslogtreecommitdiff
path: root/systems/_framework/src/space.rs
diff options
context:
space:
mode:
Diffstat (limited to 'systems/_framework/src/space.rs')
-rw-r--r--systems/_framework/src/space.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/systems/_framework/src/space.rs b/systems/_framework/src/space.rs
index c57fa26..79c9b37 100644
--- a/systems/_framework/src/space.rs
+++ b/systems/_framework/src/space.rs
@@ -1,5 +1,5 @@
use crate::space::error::SpaceError;
-use just_fmt::fmt_path::{PathFormatConfig, PathFormatError, fmt_path, fmt_path_custom};
+use just_fmt::fmt_path::{PathFormatConfig, fmt_path, fmt_path_custom};
use std::{
cell::Cell,
env::current_dir,
@@ -114,7 +114,7 @@ impl<T: SpaceRoot> Space<T> {
/// Set the current directory explicitly.
///
/// This clears any cached space directory.
- pub fn set_current_dir(&mut self, path: PathBuf) -> Result<(), PathFormatError> {
+ pub fn set_current_dir(&mut self, path: PathBuf) -> Result<(), SpaceError> {
self.update_space_dir(None);
self.current_dir = Some(fmt_path(path)?);
Ok(())