Skip to content

Commit bd341f2

Browse files
authored
Merge pull request #47 from serde-rs/nostd-deserialize
Unconditional serde_bytes::deserialize
2 parents 0d92965 + 1772017 commit bd341f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ mod bytebuf;
5252
#[cfg(feature = "alloc")]
5353
extern crate alloc;
5454

55-
#[cfg(any(feature = "std", feature = "alloc"))]
56-
use serde::Deserializer;
57-
58-
use serde::Serializer;
55+
use serde::{Deserializer, Serializer};
5956

6057
pub use crate::bytearray::ByteArray;
6158
pub use crate::bytes::Bytes;
@@ -116,7 +113,6 @@ where
116113
/// byte_array: [u8; 314],
117114
/// }
118115
/// ```
119-
#[cfg(any(feature = "std", feature = "alloc"))]
120116
pub fn deserialize<'de, T, D>(deserializer: D) -> Result<T, D::Error>
121117
where
122118
T: Deserialize<'de>,

0 commit comments

Comments
 (0)