|
1 | | -use crate::{Array, Key, StringValue, Value}; |
| 1 | +use crate::{Key, StringValue}; |
2 | 2 | use std::{borrow::Cow, collections::HashMap, time::SystemTime}; |
3 | 3 |
|
4 | 4 | /// SDK implemented trait for managing log records |
@@ -108,23 +108,6 @@ impl<K: Into<Key>, V: Into<AnyValue>> FromIterator<(K, V)> for AnyValue { |
108 | 108 | } |
109 | 109 | } |
110 | 110 |
|
111 | | -impl From<Value> for AnyValue { |
112 | | - fn from(value: Value) -> Self { |
113 | | - match value { |
114 | | - Value::Bool(b) => b.into(), |
115 | | - Value::I64(i) => i.into(), |
116 | | - Value::F64(f) => f.into(), |
117 | | - Value::String(s) => s.into(), |
118 | | - Value::Array(a) => match a { |
119 | | - Array::Bool(b) => AnyValue::from_iter(b), |
120 | | - Array::F64(f) => AnyValue::from_iter(f), |
121 | | - Array::I64(i) => AnyValue::from_iter(i), |
122 | | - Array::String(s) => AnyValue::from_iter(s), |
123 | | - }, |
124 | | - } |
125 | | - } |
126 | | -} |
127 | | - |
128 | 111 | /// A normalized severity value. |
129 | 112 | #[derive(Debug, Copy, Clone, PartialEq, Eq, Ord, PartialOrd)] |
130 | 113 | pub enum Severity { |
|
0 commit comments