Skip to content

Commit

Permalink
build(profiling): bump to Rust 1.76 (#2876)
Browse files Browse the repository at this point in the history
The CI images were previously bumped to Rust 1.76.
  • Loading branch information
morrisonlevi authored Oct 14, 2024
1 parent 65d305a commit f44e093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion profiling/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion profiling/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.71"
channel = "1.76"
3 changes: 1 addition & 2 deletions profiling/src/profiling/uploader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f44e093

Please sign in to comment.