Skip to content

Commit db38852

Browse files
committed
Unconditionally support 128-bit integers
Always supported on modern rust & avoids a deprecation warning in slog v2.8. See slog-rs/slog@48e4651 for details. This change has no affect on behavior and does not fix a bug, so does not need to be noted in the changelog.
1 parent e44b8a7 commit db38852

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/lib.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// {{{ Crate docs
1+
//! {{{ Crate docs
22
//! JSON `Drain` for `slog-rs`
33
//!
44
//! ```
@@ -23,7 +23,6 @@
2323
extern crate slog;
2424

2525
use serde::ser::SerializeMap;
26-
use serde::serde_if_integer128;
2726
use slog::Key;
2827
use slog::Record;
2928
use slog::{FnValue, PushFnValue};
@@ -132,13 +131,11 @@ where
132131
fn emit_f64(&mut self, key: Key, val: f64) -> slog::Result {
133132
impl_m!(self, key, &val)
134133
}
135-
serde_if_integer128! {
136-
fn emit_u128(&mut self, key: Key, val: u128) -> slog::Result {
137-
impl_m!(self, key, &val)
138-
}
139-
fn emit_i128(&mut self, key: Key, val: i128) -> slog::Result {
140-
impl_m!(self, key, &val)
141-
}
134+
fn emit_u128(&mut self, key: Key, val: u128) -> slog::Result {
135+
impl_m!(self, key, &val)
136+
}
137+
fn emit_i128(&mut self, key: Key, val: i128) -> slog::Result {
138+
impl_m!(self, key, &val)
142139
}
143140
fn emit_str(&mut self, key: Key, val: &str) -> slog::Result {
144141
impl_m!(self, key, &val)

0 commit comments

Comments
 (0)