aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornotgne22021-01-08 19:08:34 -0700
committernotgne22021-01-08 19:08:34 -0700
commitdc26fba1bd908fbdf1b3d702ad67cbb351952e7a (patch)
treec51d559f7f48ea65c840bc9f2aa04b6d92a1fc22 /src
parentf33081cc8cf6aa204c6b1cfd3e658621139f8e43 (diff)
Remove unused DeployPathToActivatePathError
Diffstat (limited to 'src')
-rw-r--r--src/deploy.rs3
-rw-r--r--src/lib.rs8
-rw-r--r--src/push.rs2
3 files changed, 0 insertions, 13 deletions
diff --git a/src/deploy.rs b/src/deploy.rs
index cc31a62..03c3623 100644
--- a/src/deploy.rs
+++ b/src/deploy.rs
@@ -139,9 +139,6 @@ fn test_wait_command_builder() {
#[derive(Error, Debug)]
pub enum DeployProfileError {
- #[error("Failed to calculate activate bin path from deploy bin path: {0}")]
- DeployPathToActivatePathError(#[from] super::DeployPathToActivatePathError),
-
#[error("Failed to spawn activation command over SSH: {0}")]
SSHSpawnActivateError(std::io::Error),
diff --git a/src/lib.rs b/src/lib.rs
index 6a6873f..edc0507 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -414,11 +414,3 @@ pub fn make_deploy_data<'a, 's>(
log_dir,
}
}
-
-#[derive(Error, Debug)]
-pub enum DeployPathToActivatePathError {
- #[error("Deploy path did not have a parent directory")]
- PathTooShort,
- #[error("Deploy path was not valid utf8")]
- InvalidUtf8,
-}
diff --git a/src/push.rs b/src/push.rs
index e7456cc..2f83019 100644
--- a/src/push.rs
+++ b/src/push.rs
@@ -10,8 +10,6 @@ use thiserror::Error;
#[derive(Error, Debug)]
pub enum PushProfileError {
- #[error("Failed to calculate activate bin path from deploy bin path: {0}")]
- DeployPathToActivatePathError(#[from] super::DeployPathToActivatePathError),
#[error("Failed to run Nix build command: {0}")]
BuildError(std::io::Error),
#[error("Nix build command resulted in a bad exit code: {0:?}")]