From 442807a4ab1904a5313ac7eeed28413aac004333 Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi Date: Thu, 11 Jul 2024 22:21:24 +0530 Subject: [PATCH] Fix warning due to use of deprecated function. This was causing a build issue in the hava and csharp bindings Signed-off-by: Anand Krishnamoorthi --- CHANGELOG.md | 1 + src/builtins/uuid.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e00b5749..9f56bb1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -354,3 +354,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - LICENSE committed - CODE_OF_CONDUCT.md committed - Initial commit + diff --git a/src/builtins/uuid.rs b/src/builtins/uuid.rs index 92c337e3..8fb8aed5 100644 --- a/src/builtins/uuid.rs +++ b/src/builtins/uuid.rs @@ -121,6 +121,7 @@ fn timestamp(uuid: &Uuid) -> Option { // https://github.com/uuid-rs/uuid/blob/94ecea893fadac93248f1bd6f47673c09cec5912/src/lib.rs#L900-L904 if uuid.get_version_num() == 2 { let (ticks, counter) = decode_rfc4122_timestamp(uuid); + #[allow(deprecated)] return Some(Timestamp::from_rfc4122(ticks, counter)); }