Skip to content

Commit 8252398

Browse files
author
Razvan Rotari
committed
Remove unnecessary use statement
1 parent f0fd0e7 commit 8252398

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

opentelemetry-proto/src/proto.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use serde::Deserialize;
2-
31
/// provide serde support for proto traceIds and spanIds.
42
/// Those are hex encoded strings in the jsons but they are byte arrays in the proto.
53
/// See https://opentelemetry.io/docs/specs/otlp/#json-protobuf-encoding for more details
@@ -59,15 +57,15 @@ pub(crate) mod serializers {
5957
Ok(s) => s,
6058
Err(e) => return Err(e), // Handle the error or return it
6159
};
62-
60+
6361
// Attempt to serialize the intValue field
6462
if let Err(e) = state.serialize_field("intValue", &i.to_string()) {
6563
return Err(e); // Handle the error or return it
6664
}
67-
65+
6866
// Finalize the struct serialization
6967
state.end()
70-
},
68+
}
7169
Some(value) => value.serialize(serializer),
7270
None => serializer.serialize_none(),
7371
},
@@ -188,7 +186,7 @@ pub(crate) mod serializers {
188186
let s = value.to_string();
189187
serializer.serialize_str(&s)
190188
}
191-
189+
192190
pub fn deserialize_string_to_i64<'de, D>(deserializer: D) -> Result<i64, D::Error>
193191
where
194192
D: Deserializer<'de>,

0 commit comments

Comments
 (0)