Skip to content

Commit 7fb8a73

Browse files
committed
Add allow(dead_code) for clippy guard
1 parent 4f665dd commit 7fb8a73

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

core/src/consensus/signer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ impl EngineSigner {
7878
Ok(result)
7979
}
8080

81+
#[allow(dead_code)]
8182
/// Generate a vrf random hash.
8283
pub fn vrf_hash(&self, hash: H256, vrf_inst: &mut ECVRF) -> Result<Vec<u8>, AccountProviderError> {
8384
Ok(match &self.decrypted_account {

core/src/consensus/sortition/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

17+
#![allow(dead_code)]
18+
1719
mod binom_cdf;
1820
mod draw;
1921
pub mod vrf_sortition;

core/src/consensus/sortition/vrf_sortition.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1616

17+
#![allow(dead_code)]
18+
1719
use std::sync::Arc;
1820

1921
use ccrypto::sha256;

0 commit comments

Comments
 (0)