From 4b94a47704f960c25e5d7fd2ffee62fdb99af2d0 Mon Sep 17 00:00:00 2001 From: Jay Pavlina Date: Tue, 13 Sep 2022 16:47:26 -0300 Subject: [PATCH] Use core RangeInclusive instead of std (#378) --- src/max_encoded_len.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/max_encoded_len.rs b/src/max_encoded_len.rs index 4b40baa6..b4c0d878 100644 --- a/src/max_encoded_len.rs +++ b/src/max_encoded_len.rs @@ -17,8 +17,7 @@ use crate::{Compact, Encode}; use impl_trait_for_tuples::impl_for_tuples; -use core::{mem, marker::PhantomData, num::*, ops::Range, time::Duration}; -use std::ops::RangeInclusive; +use core::{mem, marker::PhantomData, num::*, ops::{Range, RangeInclusive}, time::Duration}; use crate::alloc::boxed::Box; /// Items implementing `MaxEncodedLen` have a statically known maximum encoded size.