Skip to content

Commit 014492b

Browse files
committed
fix(deps): MSRV bump rust to 1.91
required by release-plz
1 parent dd7812d commit 014492b

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ OTEL_TRACES_SAMPLER = "always_on"
1515
# ]
1616

1717
[tools]
18-
rust = { version = "1.88.0", profile = "minimal", components = "rustfmt,clippy" } # the rust tool stack (with cargo, fmt, clippy) to build source
18+
rust = { version = "1.91.0", profile = "minimal", components = "rustfmt,clippy" } # the rust tool stack (with cargo, fmt, clippy) to build source
1919
grpcurl = "1.9"
2020
protoc = "34.0"
2121
# grpc-health-probe = "*"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exclude = ["target"]
1414
[workspace.package]
1515
version = "0.32.0"
1616
edition = "2024"
17-
rust-version = "1.88.0"
17+
rust-version = "1.91.0"
1818
homepage = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk"
1919
repository = "https://github.com/davidB/tracing-opentelemetry-instrumentation-sdk"
2020
license = "CC0-1.0"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.88.0"
2+
channel = "1.91.0"

tracing-opentelemetry-instrumentation-sdk/src/http/opentelemetry_http.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ pub struct HeaderInjector<'a>(pub &'a mut http::HeaderMap);
66
impl Injector for HeaderInjector<'_> {
77
/// Set a key and value in the `HeaderMap`. Does nothing if the key or value are not valid inputs.
88
fn set(&mut self, key: &str, value: String) {
9-
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes()) {
10-
if let Ok(val) = http::header::HeaderValue::from_str(&value) {
11-
self.0.insert(name, val);
12-
}
9+
if let Ok(name) = http::header::HeaderName::from_bytes(key.as_bytes())
10+
&& let Ok(val) = http::header::HeaderValue::from_str(&value)
11+
{
12+
self.0.insert(name, val);
1313
}
1414
}
1515
}

0 commit comments

Comments
 (0)