Skip to content

Commit

Permalink
Merge pull request #47 from serde-rs/nostd-deserialize
Browse files Browse the repository at this point in the history
Unconditional serde_bytes::deserialize
  • Loading branch information
dtolnay authored Dec 27, 2023
2 parents 0d92965 + 1772017 commit bd341f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ mod bytebuf;
#[cfg(feature = "alloc")]
extern crate alloc;

#[cfg(any(feature = "std", feature = "alloc"))]
use serde::Deserializer;

use serde::Serializer;
use serde::{Deserializer, Serializer};

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

0 comments on commit bd341f2

Please sign in to comment.