Skip to content

Commit 980e402

Browse files
Fixed broken commit to trunk (#687)
Co-authored-by: Victor Koenders <[email protected]>
1 parent 092628b commit 980e402

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/de/impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ use crate::{
99
};
1010
use core::{
1111
cell::{Cell, RefCell},
12+
cmp::Reverse,
1213
num::{
1314
NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8, NonZeroIsize, NonZeroU128,
1415
NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize, Wrapping,
1516
},
1617
ops::{Bound, Range, RangeInclusive},
1718
time::Duration,
1819
};
19-
use std::cmp::Reverse;
2020

2121
impl Decode for bool {
2222
fn decode<D: Decoder>(decoder: &mut D) -> Result<Self, DecodeError> {

src/enc/impls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::{
33
config::{Endianness, IntEncoding, InternalEndianConfig, InternalIntEncodingConfig},
44
error::EncodeError,
55
};
6+
use core::cmp::Reverse;
67
use core::{
78
cell::{Cell, RefCell},
89
marker::PhantomData,
@@ -13,7 +14,6 @@ use core::{
1314
ops::{Bound, Range, RangeInclusive},
1415
time::Duration,
1516
};
16-
use std::cmp::Reverse;
1717

1818
impl Encode for () {
1919
fn encode<E: Encoder>(&self, _: &mut E) -> Result<(), EncodeError> {

tests/basic_types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ mod utils;
22

33
use bincode::error::DecodeError;
44
use core::cell::{Cell, RefCell};
5+
use core::cmp::Reverse;
56
use core::ops::Bound;
67
use core::time::Duration;
7-
use std::cmp::Reverse;
88
use std::num::*;
99
use utils::{the_same, the_same_with_comparer};
1010

0 commit comments

Comments
 (0)