Skip to content

Commit b35d9db

Browse files
RCasattashesek
authored andcommitted
remove unused error variant
1 parent 8be69ed commit b35d9db

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ pub enum Error {
6464
NoFeature,
6565
/// Returned when calling methods requiring a env var to exist, but it's not
6666
NoEnvVar,
67-
/// Returned when calling methods requiring either a feature or env var, but both are absent
68-
NeitherFeatureNorEnvVar,
69-
/// Returned when calling methods requiring either a feature or anv var, but both are present
70-
BothFeatureAndEnvVar,
7167
/// Returned when expecting an auto-downloaded executable but `BITCOIND_SKIP_DOWNLOAD` env var is set
7268
SkipDownload,
7369
}
@@ -81,8 +77,6 @@ impl fmt::Debug for Error {
8177
Error::Json(e) => write!(f, "{:?}", e),
8278
Error::NoFeature => write!(f, "Called a method requiring a feature to be set, but it's not"),
8379
Error::NoEnvVar => write!(f, "Called a method requiring env var `ELECTRUMD_EXE` to be set, but it's not"),
84-
Error::NeitherFeatureNorEnvVar => write!(f, "Called a method requiring env var `ELECTRUMD_EXE` or a feature to be set, but neither are set"),
85-
Error::BothFeatureAndEnvVar => write!(f, "Called a method requiring env var `ELECTRUMD_EXE` or a feature to be set, but both are set"),
8680
Error::SkipDownload => write!(f, "expecting an auto-downloaded executable but `ELECTRUMD_SKIP_DOWNLOAD` env var is set"),
8781
}
8882
}

0 commit comments

Comments
 (0)