common: Remove unnecessary bound from FlattenedJson::from_raw
This commit is contained in:
parent
1b4234c505
commit
8f1eae97ce
@ -271,14 +271,9 @@ pub struct FlattenedJson {
|
||||
|
||||
impl FlattenedJson {
|
||||
/// Create a `FlattenedJson` from `Raw`.
|
||||
pub fn from_raw<T>(raw: &Raw<T>) -> Self
|
||||
where
|
||||
T: Serialize,
|
||||
{
|
||||
pub fn from_raw<T>(raw: &Raw<T>) -> Self {
|
||||
let mut s = Self { map: BTreeMap::new() };
|
||||
|
||||
s.flatten_value(to_json_value(raw).unwrap(), "".into());
|
||||
|
||||
s
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user