Don't dereference slices obtained from include_bytes.

This commit is contained in:
Guillaume Endignoux
2020-02-06 13:28:28 +01:00
parent f5ed8a09f6
commit 56acc4b73a
3 changed files with 10 additions and 10 deletions

View File

@@ -12,10 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub const AAGUID: [u8; 16] = *include_bytes!(concat!(env!("OUT_DIR"), "/opensk_aaguid.bin"));
pub const AAGUID: &[u8; 16] = include_bytes!(concat!(env!("OUT_DIR"), "/opensk_aaguid.bin"));
pub const ATTESTATION_CERTIFICATE: &[u8] =
include_bytes!(concat!(env!("OUT_DIR"), "/opensk_cert.bin"));
pub const ATTESTATION_PRIVATE_KEY: [u8; 32] =
*include_bytes!(concat!(env!("OUT_DIR"), "/opensk_pkey.bin"));
pub const ATTESTATION_PRIVATE_KEY: &[u8; 32] =
include_bytes!(concat!(env!("OUT_DIR"), "/opensk_pkey.bin"));