From 1b14a11c1f4a06f598461bd4dd366e414a4cabd7 Mon Sep 17 00:00:00 2001 From: Rick Richardson Date: Wed, 17 Aug 2022 10:46:21 -0700 Subject: [PATCH] reverting to 2018 to fix build checks --- Cargo.toml | 2 +- src/v7.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5e6f85b..b660a5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ categories = [ ] description = "A library to generate and parse UUIDs." documentation = "https://docs.rs/uuid" -edition = "2021" +edition = "2018" exclude = [ ".github/**" ] diff --git a/src/v7.rs b/src/v7.rs index 9e86abc..c8294db 100644 --- a/src/v7.rs +++ b/src/v7.rs @@ -6,6 +6,7 @@ use crate::rng::{bytes, u16}; use crate::timestamp::Timestamp; use crate::{Uuid, Version}; +use core::convert::TryInto; impl Uuid { /// Create a new UUID (version 7) using a time value + random number