Skip to content

Commit 7649242

Browse files
committed
Remove #[allow(dead_code)]
1 parent 29cec70 commit 7649242

File tree

6 files changed

+1
-11
lines changed

6 files changed

+1
-11
lines changed

src/bit_machine/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(dead_code)]
2-
1+
#[allow(dead_code)]
32
pub mod exec;
43
mod frame;

src/core/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
pub mod commit;
2121
pub mod iter;
2222
pub mod node;
23-
#[allow(dead_code)]
2423
pub mod types;
2524
mod value;
2625

src/core/node.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ pub enum NodeInner<Witness, App: Application> {
6363
Jet(&'static JetNode<App>),
6464
}
6565

66-
#[allow(dead_code)]
6766
/// Source and target type of a node
6867
#[derive(Debug)]
6968
pub struct NodeType {

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,23 @@ extern crate bitcoin_hashes;
1818
extern crate byteorder;
1919
extern crate miniscript;
2020

21-
#[allow(unused_macros)]
2221
#[macro_use]
2322
mod macros;
2423

25-
#[allow(dead_code)]
2624
mod analysis;
2725
pub mod bit_machine;
2826
pub mod bititer;
2927
pub mod core;
30-
#[allow(dead_code)]
3128
pub mod decode;
3229
#[allow(dead_code)]
3330
pub mod encode;
34-
#[allow(dead_code)]
3531
mod inference;
3632
pub mod jet;
3733
pub mod merkle;
3834
#[cfg(feature = "bitcoin")]
3935
pub mod policy;
4036
#[cfg(test)]
4137
mod test_progs;
42-
#[allow(dead_code)]
4338
mod util;
4439

4540
pub use crate::bit_machine::exec;

src/merkle/imr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ impl CommitMerkleRoot for Imr {
4646
}
4747
}
4848

49-
#[allow(dead_code)]
5049
/// Compute the IMR of the given node (once finalized).
5150
///
5251
/// Nodes with left children require their finalized left child,

src/util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ macro_rules! define_be_to_array {
4343
}
4444

4545
define_slice_to_be!(slice_to_u64_be, u64);
46-
define_slice_to_be!(slice_to_u32_be, u32);
4746
define_be_to_array!(u64_to_array_be, u64, 8);
4847

4948
// handy function for converting bit vector to vec[u8]

0 commit comments

Comments
 (0)