From 24b2ddfd11bdba8a40e44694543bdcd155230f2f Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi Date: Thu, 11 Jul 2024 22:21:24 +0530 Subject: [PATCH] Fix build break - Fix warning due to use of deprecated function. This was causing a build issue in the hava and csharp bindings - Lock use of v4.0.0 of actions/setup-dotnet. The newer version of the action causes a "type of namespace C could not be find error" Signed-off-by: Anand Krishnamoorthi --- .github/workflows/test-csharp.yml | 2 +- CHANGELOG.md | 1 + src/builtins/uuid.rs | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-csharp.yml b/.github/workflows/test-csharp.yml index 67f16d1b..8ac0c373 100644 --- a/.github/workflows/test-csharp.yml +++ b/.github/workflows/test-csharp.yml @@ -15,7 +15,7 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-dotnet@v4 + - uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v04.0.0 - name: Build run: dotnet build 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)); }