Browse Source

impl AsI64 for u16

master
Jonathan Strong 6 years ago
parent
commit
3ecc2b74f9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/influx.rs

+ 1
- 0
src/influx.rs View File

@@ -52,6 +52,7 @@ impl AsI64 for u64 { fn as_i64(x: Self) -> i64 { x as i64 } }
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 } }

/// Created this so I know what types can be passed through the
/// `measure!` macro, which used to convert with `as i64` and


Loading…
Cancel
Save