diff --git a/Cargo.lock b/Cargo.lock --- a/Cargo.lock +++ b/Cargo.lock @@ -187,6 +187,7 @@ version = "0.1.0" dependencies = [ "abc-rust-error", + "abc-rust-lint", "bitcoinsuite-core", "postcard", "pretty_assertions", diff --git a/chronik/chronik-db/Cargo.toml b/chronik/chronik-db/Cargo.toml --- a/chronik/chronik-db/Cargo.toml +++ b/chronik/chronik-db/Cargo.toml @@ -9,6 +9,7 @@ [dependencies] abc-rust-error = { path = "../abc-rust-error" } +abc-rust-lint = { path = "../abc-rust-lint" } bitcoinsuite-core = { path = "../bitcoinsuite-core" } # Compact and fast serialization diff --git a/chronik/chronik-db/src/lib.rs b/chronik/chronik-db/src/lib.rs --- a/chronik/chronik-db/src/lib.rs +++ b/chronik/chronik-db/src/lib.rs @@ -2,31 +2,9 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#![deny(unsafe_code)] -#![warn( - const_err, - explicit_outlives_requirements, - improper_ctypes, - keyword_idents, - missing_debug_implementations, - missing_docs, - no_mangle_generic_items, - non_ascii_idents, - non_shorthand_field_patterns, - noop_method_call, - overflowing_literals, - path_statements, - patterns_in_fns_without_body, - private_in_public, - rust_2018_idioms, - unconditional_recursion, - unreachable_pub, - unused_comparisons, - unused, - while_true -)] - //! Stores and retrieves data for Chronik in a database. -pub mod db; -pub mod io; +abc_rust_lint::lint! { + pub mod db; + pub mod io; +}