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,