From 465b8d9cf0d859e7f9c4c5ea20e0f1e002c1c1d5 Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sun, 23 Jul 2023 10:02:11 +0900 Subject: [PATCH] working_copy: remove unused SnapshotError::FileOpenError variant Perhaps, this would have been generalized as IoError. --- lib/src/working_copy.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/src/working_copy.rs b/lib/src/working_copy.rs index 4269a2e86..db3a84684 100644 --- a/lib/src/working_copy.rs +++ b/lib/src/working_copy.rs @@ -284,8 +284,6 @@ pub struct CheckoutStats { #[derive(Debug, Error)] pub enum SnapshotError { - #[error("Failed to open file {path}: {err:?}")] - FileOpenError { path: PathBuf, err: std::io::Error }, #[error("Failed to query the filesystem monitor: {0}")] FsmonitorError(String), #[error("{message}: {err}")]