Skip to content

Commit 8547eed

Browse files
committed
Update configure_me_codegen
Improves developer experience by outputting nice error messages when compiled with `--features=configure_me_codegen/spanned`.
1 parent e14497c commit 8547eed

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ default-features = false
4949
features = ["zstd", "snappy"]
5050

5151
[build-dependencies]
52-
configure_me_codegen = "0.4.2"
52+
configure_me_codegen = "0.4.3"
5353

5454
[dev-dependencies]
5555
tempfile = "3.3"

build.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extern crate configure_me_codegen;
2-
3-
fn main() -> Result<(), configure_me_codegen::Error> {
4-
configure_me_codegen::build_script_auto()
1+
fn main() {
2+
configure_me_codegen::build_script_auto().unwrap_or_else(|error| error.report_and_exit())
53
}

src/config.rs

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ pub const ELECTRS_VERSION: &str = env!("CARGO_PKG_VERSION");
1616
const DEFAULT_SERVER_ADDRESS: [u8; 4] = [127, 0, 0, 1]; // by default, serve on IPv4 localhost
1717

1818
mod internal {
19-
#![allow(unused)]
20-
#![allow(clippy::cognitive_complexity)]
2119
#![allow(clippy::enum_variant_names)]
2220
#![allow(clippy::unnecessary_lazy_evaluations)]
2321
#![allow(clippy::useless_conversion)]

0 commit comments

Comments
 (0)