Skip to content

Commit 54aa3a3

Browse files
committed
0.4.2
1 parent 9ad9aaa commit 54aa3a3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/data/value/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,21 @@ impl From<i64> for Value {
103103
Value::I64(from)
104104
}
105105
}
106+
impl From<i32> for Value {
107+
fn from(from: i32) -> Value {
108+
Value::I64(from as i64)
109+
}
110+
}
106111
impl From<u64> for Value {
107112
fn from(from: u64) -> Value {
108113
Value::U64(from)
109114
}
110115
}
116+
impl From<u32> for Value {
117+
fn from(from: u32) -> Value {
118+
Value::U64(from as u64)
119+
}
120+
}
111121
impl From<f64> for Value {
112122
fn from(from: f64) -> Value {
113123
Value::F64(from)

src/glue/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use {
22
super::Glue,
33
crate::{Cast, ExecuteError, Payload, Result},
4-
serde_json::{json, value::Value as JSONValue},
4+
serde_json::value::Value as JSONValue,
55
};
66

77
/// ## Select (`SELECT`)

0 commit comments

Comments
 (0)