Skip to content

Commit 6c468e0

Browse files
authored
Update lib.rs
1 parent a0fc1f3 commit 6c468e0

File tree

1 file changed

+8
-8
lines changed
  • opentelemetry-appender-log/src

1 file changed

+8
-8
lines changed

opentelemetry-appender-log/src/lib.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ mod any_value {
621621

622622
fn end(self) -> Result<Self::Ok, Self::Error> {
623623
Ok(Some(AnyValue::Map({
624-
let mut variant = HashMap::default();
624+
let mut variant = HashMap::new();
625625
variant.insert(Key::from(self.variant), AnyValue::ListAny(self.value));
626626
variant
627627
})))
@@ -713,7 +713,7 @@ mod any_value {
713713

714714
fn end(self) -> Result<Self::Ok, Self::Error> {
715715
Ok(Some(AnyValue::Map({
716-
let mut variant = HashMap::default();
716+
let mut variant = HashMap::new();
717717
variant.insert(Key::from(self.variant), AnyValue::Map(self.value));
718718
variant
719719
})))
@@ -1030,7 +1030,7 @@ mod tests {
10301030

10311031
assert_eq!(
10321032
AnyValue::Map({
1033-
let mut map = HashMap::default();
1033+
let mut map = HashMap::new();
10341034

10351035
map.insert(Key::from("a"), AnyValue::Int(1));
10361036
map.insert(Key::from("b"), AnyValue::Int(1));
@@ -1043,7 +1043,7 @@ mod tests {
10431043

10441044
assert_eq!(
10451045
AnyValue::Map({
1046-
let mut map = HashMap::default();
1046+
let mut map = HashMap::new();
10471047

10481048
map.insert(Key::from("a"), AnyValue::Int(1));
10491049
map.insert(Key::from("b"), AnyValue::Int(1));
@@ -1066,7 +1066,7 @@ mod tests {
10661066

10671067
assert_eq!(
10681068
AnyValue::Map({
1069-
let mut map = HashMap::default();
1069+
let mut map = HashMap::new();
10701070
map.insert(Key::from("Newtype"), AnyValue::Int(42));
10711071

10721072
map
@@ -1076,12 +1076,12 @@ mod tests {
10761076

10771077
assert_eq!(
10781078
AnyValue::Map({
1079-
let mut map = HashMap::default();
1079+
let mut map = HashMap::new();
10801080

10811081
map.insert(
10821082
Key::from("Struct"),
10831083
AnyValue::Map({
1084-
let mut map = HashMap::default();
1084+
let mut map = HashMap::new();
10851085

10861086
map.insert(Key::from("a"), AnyValue::Int(1));
10871087
map.insert(Key::from("b"), AnyValue::Int(1));
@@ -1098,7 +1098,7 @@ mod tests {
10981098

10991099
assert_eq!(
11001100
AnyValue::Map({
1101-
let mut map = HashMap::default();
1101+
let mut map = HashMap::new();
11021102

11031103
map.insert(
11041104
Key::from("Tuple"),

0 commit comments

Comments
 (0)