From 8547eed46ad1aff49d0af655ec352ac31f414d3f Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Thu, 17 Nov 2022 00:59:17 +0100 Subject: [PATCH] Update `configure_me_codegen` Improves developer experience by outputting nice error messages when compiled with `--features=configure_me_codegen/spanned`. --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- build.rs | 6 ++---- src/config.rs | 2 -- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5dd9e47..e16e039 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -208,9 +208,9 @@ dependencies = [ [[package]] name = "configure_me_codegen" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aa65df44cc55922b4e22f49939727156a8de25492bf6bd2462a75afc5e155d6" +checksum = "981fb98983781be95b91dc4ce7c178ae000f91350d783d43d1ce8adc4963c91f" dependencies = [ "cargo_toml", "fmt2io", diff --git a/Cargo.toml b/Cargo.toml index a3a5882..358bd79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ default-features = false features = ["zstd", "snappy"] [build-dependencies] -configure_me_codegen = "0.4.2" +configure_me_codegen = "0.4.3" [dev-dependencies] tempfile = "3.3" diff --git a/build.rs b/build.rs index 641ae79..edd1c49 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,3 @@ -extern crate configure_me_codegen; - -fn main() -> Result<(), configure_me_codegen::Error> { - configure_me_codegen::build_script_auto() +fn main() { + configure_me_codegen::build_script_auto().unwrap_or_else(|error| error.report_and_exit()) } diff --git a/src/config.rs b/src/config.rs index 99f0092..cb90796 100644 --- a/src/config.rs +++ b/src/config.rs @@ -16,8 +16,6 @@ pub const ELECTRS_VERSION: &str = env!("CARGO_PKG_VERSION"); const DEFAULT_SERVER_ADDRESS: [u8; 4] = [127, 0, 0, 1]; // by default, serve on IPv4 localhost mod internal { - #![allow(unused)] - #![allow(clippy::cognitive_complexity)] #![allow(clippy::enum_variant_names)] #![allow(clippy::unnecessary_lazy_evaluations)] #![allow(clippy::useless_conversion)]