From 56fa533e438bd367aa5cae6fa505508aced42156 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 17 Aug 2024 22:00:06 +0300 Subject: refactor(tvix/castore): have PathComponent-specific errors Don't use DirectoryError, but PathComponentError. Also add checks for too long path components. Change-Id: Ia9deb9dd0351138baadb2e9c9454c3e019d5a45e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12229 Tested-by: BuildkiteCI Reviewed-by: Ilan Joselevich Autosubmit: flokli Reviewed-by: edef --- tvix/castore/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/castore/src/lib.rs') diff --git a/tvix/castore/src/lib.rs b/tvix/castore/src/lib.rs index 6e1b36231b9d..8ac6ca3dd66a 100644 --- a/tvix/castore/src/lib.rs +++ b/tvix/castore/src/lib.rs @@ -14,7 +14,7 @@ mod nodes; pub use nodes::*; mod path; -pub use path::{Path, PathBuf, PathComponent}; +pub use path::{Path, PathBuf, PathComponent, PathComponentError}; pub mod import; pub mod proto; -- cgit 1.4.1