From 273ff032634f3233841eefbe352c4555103b0696 Mon Sep 17 00:00:00 2001 From: Levi Morrison Date: Fri, 4 Oct 2024 09:16:11 -0600 Subject: [PATCH] build(profiling): bump to Rust 1.76 The CI images were previously bumped to Rust 1.76. --- profiling/Cargo.toml | 2 +- profiling/rust-toolchain.toml | 2 +- profiling/src/profiling/uploader.rs | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/profiling/Cargo.toml b/profiling/Cargo.toml index 6d3ea5a8c1..2f0794e186 100644 --- a/profiling/Cargo.toml +++ b/profiling/Cargo.toml @@ -3,7 +3,7 @@ name = "datadog-php-profiling" version = "0.0.0" edition = "2021" license = "Apache-2.0" -rust-version = "1.71" +rust-version = "1.76" [lib] crate-type = ["cdylib"] diff --git a/profiling/rust-toolchain.toml b/profiling/rust-toolchain.toml index b7105a83e1..83a52c3838 100644 --- a/profiling/rust-toolchain.toml +++ b/profiling/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.71" +channel = "1.76" diff --git a/profiling/src/profiling/uploader.rs b/profiling/src/profiling/uploader.rs index aac911d21e..287ac08d58 100644 --- a/profiling/src/profiling/uploader.rs +++ b/profiling/src/profiling/uploader.rs @@ -69,8 +69,7 @@ impl Uploader { let agent_endpoint = &self.endpoint; let endpoint = Endpoint::try_from(agent_endpoint)?; - // This is the currently unstable Arc::unwrap_or_clone. - let tags = Some(Arc::try_unwrap(index.tags).unwrap_or_else(|arc| (*arc).clone())); + let tags = Some(Arc::unwrap_or_clone(index.tags)); let exporter = datadog_profiling::exporter::ProfileExporter::new( profiling_library_name, profiling_library_version,