Finish eliminating consts module

Either moves constants into their relevant modules, or puts the
remaining ones into `lib.rs`
This commit is contained in:
Tony Arcieri
2019-12-08 09:32:57 -08:00
parent 86b8c6a6db
commit 31efd4e78c
11 changed files with 86 additions and 47 deletions
+8 -1
View File
@@ -30,7 +30,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
use crate::{consts::*, error::Error, metadata, mgm::MgmType, yubikey::YubiKey};
use crate::{
error::Error,
metadata,
mgm::{MgmType, ADMIN_FLAGS_1_PROTECTED_MGM},
yubikey::{YubiKey, ADMIN_FLAGS_1_PUK_BLOCKED},
TAG_ADMIN, TAG_ADMIN_FLAGS_1, TAG_ADMIN_SALT, TAG_ADMIN_TIMESTAMP, TAG_PROTECTED,
TAG_PROTECTED_FLAGS_1, TAG_PROTECTED_MGM,
};
use log::error;
use std::{
convert::TryInto,