File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " multisql"
3
- version = " 0.3.8 "
3
+ version = " 0.3.9 "
4
4
authors = [" Kyran Gostelow <kyran@gostelow.me>" , " Taehoon Moon <taehoon.moon@outlook.com>" ]
5
5
edition = " 2021"
6
6
description = " MultiSQL"
Original file line number Diff line number Diff line change 1
- use crate :: Value ;
1
+ use crate :: { Cast , Value } ;
2
2
3
3
impl From < Value > for serde_json:: value:: Value {
4
4
fn from ( value : Value ) -> serde_json:: value:: Value {
5
5
match value {
6
6
Value :: Bool ( value) => value. into ( ) ,
7
+ Value :: U64 ( value) => value. into ( ) ,
7
8
Value :: I64 ( value) => value. into ( ) ,
8
9
Value :: F64 ( value) => value. into ( ) ,
9
10
Value :: Str ( value) => value. into ( ) ,
10
11
Value :: Null => serde_json:: value:: Value :: Null ,
11
- _ => unimplemented ! ( ) ,
12
+ other => {
13
+ let string: String = other. cast ( ) . unwrap ( ) ;
14
+ string. into ( )
15
+ }
12
16
}
13
17
}
14
18
}
You can’t perform that action at this time.
0 commit comments