Skip to content

Commit 9e99fe8

Browse files
committed
Gate IoReader import
1 parent 938ad60 commit 9e99fe8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/features/serde/de_owned.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
use super::DecodeError as SerdeDecodeError;
1+
use super::{de_borrowed::borrow_decode_from_slice, DecodeError as SerdeDecodeError};
22
use crate::{
33
config::Config,
44
de::{read::Reader, Decode, Decoder, DecoderImpl},
55
error::DecodeError,
6-
IoReader,
76
};
87
use serde::de::*;
98

10-
use super::de_borrowed::borrow_decode_from_slice;
9+
#[cfg(feature = "std")]
10+
use crate::features::IoReader;
1111

1212
/// Serde decoder encapsulating an owned reader.
1313
pub struct OwnedSerdeDecoder<DE: Decoder> {

0 commit comments

Comments
 (0)