mononoke: remove dead_code

Reviewed By: farnz

Differential Revision: D16263583

fbshipit-source-id: 00a1d1cce271b3bb1e538ca9b3e101ff359dbc3b
This commit is contained in:
Stanislau Hlebik 2019-07-16 03:44:54 -07:00 committed by Facebook Github Bot
parent 6282f84a36
commit 2ea0f7e6d3
2 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,6 @@
//! Base types used throughout Mononoke.
#![deny(warnings)]
// The allow(dead_code) is temporary until Thrift serialization is done.
#![allow(dead_code)]
#![feature(const_fn)]
pub mod blob;

View File

@ -99,6 +99,7 @@ macro_rules! impl_typed_hash {
}
}
#[cfg(test)]
pub(crate) fn from_byte_array(arr: [u8; 32]) -> Self {
$typed(Blake2::from_byte_array(arr))
}