mirror of https://git.sr.ht/~stygianentity/bincode
Fixed broken commit to trunk (#687)
Co-authored-by: Victor Koenders <victor.koenders@qrtech.se>
This commit is contained in:
parent
67564d2bd4
commit
e0e5402094
|
|
@ -9,6 +9,7 @@ use crate::{
|
|||
};
|
||||
use core::{
|
||||
cell::{Cell, RefCell},
|
||||
cmp::Reverse,
|
||||
num::{
|
||||
NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8, NonZeroIsize, NonZeroU128,
|
||||
NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize, Wrapping,
|
||||
|
|
@ -16,7 +17,6 @@ use core::{
|
|||
ops::{Bound, Range, RangeInclusive},
|
||||
time::Duration,
|
||||
};
|
||||
use std::cmp::Reverse;
|
||||
|
||||
impl Decode for bool {
|
||||
fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, DecodeError> {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use crate::{
|
|||
config::{Endianness, IntEncoding, InternalEndianConfig, InternalIntEncodingConfig},
|
||||
error::EncodeError,
|
||||
};
|
||||
use core::cmp::Reverse;
|
||||
use core::{
|
||||
cell::{Cell, RefCell},
|
||||
marker::PhantomData,
|
||||
|
|
@ -13,7 +14,6 @@ use core::{
|
|||
ops::{Bound, Range, RangeInclusive},
|
||||
time::Duration,
|
||||
};
|
||||
use std::cmp::Reverse;
|
||||
|
||||
impl Encode for () {
|
||||
fn encode<E: Encoder>(&self, _: &mut E) -> Result<(), EncodeError> {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ mod utils;
|
|||
|
||||
use bincode::error::DecodeError;
|
||||
use core::cell::{Cell, RefCell};
|
||||
use core::cmp::Reverse;
|
||||
use core::ops::Bound;
|
||||
use core::time::Duration;
|
||||
use std::cmp::Reverse;
|
||||
use std::num::*;
|
||||
use utils::{the_same, the_same_with_comparer};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue