Skip to content

Commit

Permalink
fix the problem from deny(missing_docs)
Browse files Browse the repository at this point in the history
  • Loading branch information
YaoGalteland committed Mar 11, 2024
1 parent 7c95330 commit c791418
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions halo2_gadgets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pprof = { version = "0.8", features = ["criterion", "flamegraph"] } # MSRV 1.56
bench = false

[features]
default = ["verifiable-encryption"]
verifiable-encryption = []
test-dev-graph = [
"halo2_proofs/dev-graph",
"plotters",
Expand Down
7 changes: 4 additions & 3 deletions halo2_gadgets/src/utilities/lookup_range_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,10 @@ impl<F: PrimeFieldBits, const K: usize> LookupRangeCheckConfig<F, K> {
config
}

// Fill `table_idx` and `table_range_check_tag`.
// This is only used in testing for now, since the Sinsemilla chip provides a pre-loaded table
// in the Orchard context.
#[cfg(any(test, feature = "verifiable-encryption"))]
/// Fill `table_idx` and `table_range_check_tag`.
/// This is only used in testing for now, since the Sinsemilla chip provides a pre-loaded table
/// in the Orchard context.
pub fn load(&self, layouter: &mut impl Layouter<F>) -> Result<(), Error> {
layouter.assign_table(
|| "table_idx",
Expand Down

0 comments on commit c791418

Please sign in to comment.