// Copyright (c) 2022 The Bitcoin developers
// 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
)]

//! Core primitives for dealing with Bitcoin-like chains.
//!
//! Note: This is a general purpose library, but has been optimized for the
//! usage in Chronik, an indexer for Bitcoin ABC.

pub mod block;
pub mod hash;

// Copyright (c) 2022 The Bitcoin developers
// 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,
    dead_code,
    elided_lifetimes_in_paths,
    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,
    single_use_lifetimes,
    unconditional_recursion,
    unreachable_pub,
    unused_comparisons,
    unused,
    while_true
)]

//! Core primitives for dealing with Bitcoin-like chains.
//!
//! Note: This is a general purpose library, but has been optimized for the
//! usage in Chronik, an indexer for Bitcoin ABC.

pub mod block;
pub mod hash;

--- 
+++ 
@@ -5,8 +5,6 @@
 #![deny(unsafe_code)]
 #![warn(
     const_err,
-    dead_code,
-    elided_lifetimes_in_paths,
     explicit_outlives_requirements,
     improper_ctypes,
     keyword_idents,
@@ -21,7 +19,6 @@
     patterns_in_fns_without_body,
     private_in_public,
     rust_2018_idioms,
-    single_use_lifetimes,
     unconditional_recursion,
     unreachable_pub,
     unused_comparisons,
[Chronik] Remove `dead_code`, `elided_lifetimes_in_paths` and `single_use_lifetimes` lints

Summary:
- `dead_code` is already contained in `unused` (see https://doc.rust-lang.org/rustc/lints/groups.html), so we can remove it.
- `elided_lifetimes_in_paths` is already contained in `rust_2018_idioms`.
- `single_use_lifetimes` makes it very hard to use Higher-Rank Trait Bounds (i.e. `for<'a> SomeTrait<'a>`), so it seems to be very noisy.

Test Plan: `ninja check-bitcoinsuite`

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D11733
