Skip to content

Commit 556c202

Browse files
authored
fix: ctx imports for with no-default-features (#262)
1 parent 9f00c20 commit 556c202

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

wincode/src/schema/containers.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ use {
6262
crate::{
6363
TypeMeta,
6464
config::{ConfigCore, ZeroCopy},
65-
context,
6665
error::{ReadResult, WriteResult},
6766
io::{Reader, Writer},
68-
schema::{SchemaRead, SchemaReadContext, SchemaWrite},
67+
schema::{SchemaRead, SchemaWrite},
6968
},
7069
core::{
7170
marker::PhantomData,
@@ -76,9 +75,11 @@ use {
7675
#[cfg(feature = "alloc")]
7776
use {
7877
crate::{
78+
context,
7979
len::SeqLen,
8080
schema::{
81-
size_of_elem_iter, size_of_elem_slice, write_elem_iter, write_elem_slice_prealloc_check,
81+
SchemaReadContext, size_of_elem_iter, size_of_elem_slice, write_elem_iter,
82+
write_elem_slice_prealloc_check,
8283
},
8384
},
8485
alloc::{boxed::Box as AllocBox, collections, rc::Rc as AllocRc, vec},

wincode/src/schema/impls.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use {
1414
TypeMeta,
1515
config::{Config, ConfigCore, ZeroCopy},
1616
containers::decode_into_slice_t,
17-
context,
1817
error::{
1918
ReadResult, WriteResult, invalid_bool_encoding, invalid_char_lead,
2019
invalid_tag_encoding, invalid_utf8_encoding, invalid_value, pointer_sized_decode_error,
@@ -23,9 +22,7 @@ use {
2322
int_encoding::{ByteOrder, Endian, IntEncoding, PlatformEndian},
2423
io::{Reader, Writer},
2524
len::SeqLen,
26-
schema::{
27-
SchemaRead, SchemaReadContext, SchemaWrite, size_of_elem_slice, write_elem_slice,
28-
},
25+
schema::{SchemaRead, SchemaWrite, size_of_elem_slice, write_elem_slice},
2926
tag_encoding::TagEncoding,
3027
},
3128
core::{
@@ -45,8 +42,9 @@ use {
4542
use {
4643
crate::{
4744
containers::{self},
45+
context,
4846
error::WriteError,
49-
schema::{size_of_elem_iter, write_elem_iter_prealloc_check},
47+
schema::{SchemaReadContext, size_of_elem_iter, write_elem_iter_prealloc_check},
5048
},
5149
alloc::{
5250
borrow::Cow,

0 commit comments

Comments
 (0)