Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Sep 11, 2024
1 parent 87beb0f commit 6f57de0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,8 @@ pub fn downloaded_exe_path() -> Option<String> {

/// Returns the daemon `electrs` executable with the following precedence:
///
/// 1) If it's specified in the `ELECTRS_EXEC` or in `ELECTRS_EXE` env var
/// (errors if both env vars are present)
/// 2) If there is no env var but an auto-download feature such as `electrs_0_9_11` is enabled, returns the
/// path of the downloaded executabled
/// 1) If it's specified in the `ELECTRS_EXEC` or in `ELECTRS_EXE` env var (errors if both env vars are present)
/// 2) If there is no env var but an auto-download feature such as `electrs_0_9_11` is enabled, returns the path of the downloaded executabled
/// 3) If neither of the precedent are available, the `electrs` executable is searched in the `PATH`
pub fn exe_path() -> anyhow::Result<String> {
if let (Ok(_), Ok(_)) = (std::env::var("ELECTRS_EXEC"), std::env::var("ELECTRS_EXE")) {
Expand Down

0 comments on commit 6f57de0

Please sign in to comment.