Skip to content

Commit 5e2e14a

Browse files
committed
Oops, commited too little stuff
1 parent f7ff294 commit 5e2e14a

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

Cargo.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/core/azure_core/src/http/policies/request_instrumentation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ mod tests {
378378
todo!()
379379
}
380380

381-
fn propagate_headers(&self, request: &mut Request) {}
381+
fn propagate_headers(&self, _request: &mut Request) {}
382382
}
383383

384384
impl AsAny for MockSpan {

sdk/typespec/typespec_client_core/src/tracing/attributes.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
use typespec_macros::SafeDebug;
4+
#[cfg(feature = "derive")]
5+
use crate::fmt::SafeDebug;
56

67
/// An array of homogeneous attribute values.
7-
#[derive(SafeDebug, PartialEq)]
8+
#[cfg_attr(feature = "derive", derive(SafeDebug))]
9+
#[derive(PartialEq)]
810
pub enum AttributeArray {
911
/// An array of boolean values.
1012
Bool(Vec<bool>),
@@ -17,7 +19,8 @@ pub enum AttributeArray {
1719
}
1820

1921
/// Represents a single attribute value, which can be of various types
20-
#[derive(SafeDebug, PartialEq)]
22+
#[cfg_attr(feature = "derive", derive(SafeDebug))]
23+
#[derive(PartialEq)]
2124
pub enum AttributeValue {
2225
/// A boolean attribute value.
2326
Bool(bool),
@@ -30,7 +33,8 @@ pub enum AttributeValue {
3033
/// An array of attribute values.
3134
Array(AttributeArray),
3235
}
33-
#[derive(SafeDebug)]
36+
37+
#[cfg_attr(feature = "derive", derive(SafeDebug))]
3438
pub struct Attribute {
3539
/// A key-value pair attribute.
3640
pub key: &'static str,

0 commit comments

Comments
 (0)