Add missing untested feature gates

This commit is contained in:
Jack Grigg
2019-12-10 13:31:48 +00:00
parent 8385dda201
commit 1bf3b13e52
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
//! Enums representing key policies. //! Enums representing key policies.
#[cfg(feature = "untested")]
use crate::{error::Error, serialization::Tlv}; use crate::{error::Error, serialization::Tlv};
/// Specifies how often the PIN needs to be entered for access to the credential in a /// Specifies how often the PIN needs to be entered for access to the credential in a
+2
View File
@@ -79,6 +79,7 @@ impl<'a> Tlv<'a> {
} }
/// Writes a TLV to the given buffer. /// Writes a TLV to the given buffer.
#[cfg(feature = "untested")]
pub(crate) fn write(buffer: &mut [u8], tag: u8, value: &[u8]) -> Result<usize, Error> { pub(crate) fn write(buffer: &mut [u8], tag: u8, value: &[u8]) -> Result<usize, Error> {
if buffer.len() < CB_OBJ_TAG_MIN { if buffer.len() < CB_OBJ_TAG_MIN {
return Err(Error::SizeError); return Err(Error::SizeError);
@@ -98,6 +99,7 @@ impl<'a> Tlv<'a> {
/// Writes a TLV to the given buffer. /// Writes a TLV to the given buffer.
/// ///
/// `value` is guaranteed to be called with a mutable slice of length `length`. /// `value` is guaranteed to be called with a mutable slice of length `length`.
#[cfg(feature = "untested")]
pub(crate) fn write_as<Gen>( pub(crate) fn write_as<Gen>(
buffer: &mut [u8], buffer: &mut [u8],
tag: u8, tag: u8,