From 37d8e7ad59c21c7809a6cade1dc3b9638e6ead95 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Thu, 13 Sep 2018 00:00:04 -0400 Subject: [PATCH] AsI64 for i16, i8, u8 --- src/influx.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/influx.rs b/src/influx.rs index a853ba1..6b7e348 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -56,6 +56,9 @@ impl AsI64 for usize { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for f64 { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for f32 { fn as_i64(x: Self) -> i64 { x as i64 } } impl AsI64 for u16 { fn as_i64(x: Self) -> i64 { x as i64 } } +impl AsI64 for i16 { fn as_i64(x: Self) -> i64 { x as i64 } } +impl AsI64 for u8 { fn as_i64(x: Self) -> i64 { x as i64 } } +impl AsI64 for i8 { fn as_i64(x: Self) -> i64 { x as i64 } } /// Created this so I know what types can be passed through the /// `measure!` macro, which used to convert with `as i64` and