From 980e4029552e416c1fd2f0699a78d33562b33966 Mon Sep 17 00:00:00 2001 From: Trangar Date: Fri, 15 Dec 2023 08:08:38 +0100 Subject: [PATCH] Fixed broken commit to trunk (#687) Co-authored-by: Victor Koenders --- src/de/impls.rs | 2 +- src/enc/impls.rs | 2 +- tests/basic_types.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/impls.rs b/src/de/impls.rs index 3bb46c2b..bf88847d 100644 --- a/src/de/impls.rs +++ b/src/de/impls.rs @@ -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(decoder: &mut D) -> Result { diff --git a/src/enc/impls.rs b/src/enc/impls.rs index a62e7bfc..a2c518d2 100644 --- a/src/enc/impls.rs +++ b/src/enc/impls.rs @@ -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(&self, _: &mut E) -> Result<(), EncodeError> { diff --git a/tests/basic_types.rs b/tests/basic_types.rs index af83cad8..0aae093c 100644 --- a/tests/basic_types.rs +++ b/tests/basic_types.rs @@ -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};