From dc26fba1bd908fbdf1b3d702ad67cbb351952e7a Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 8 Jan 2021 19:08:34 -0700 Subject: Remove unused DeployPathToActivatePathError --- src/deploy.rs | 3 --- src/lib.rs | 8 -------- src/push.rs | 2 -- 3 files changed, 13 deletions(-) (limited to 'src') 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:?}")] -- cgit v1.2.3