Skip to content

Commit

Permalink
fix(serio): remove Unpin bound from item (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinui0 authored Oct 30, 2024
1 parent 0040a00 commit 43995c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions serio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ pub use sink::{IoSink, Sink, SinkExt};
pub use stream::{IoStream, Stream, StreamExt};

/// A serializable type.
pub trait Serialize: serde::Serialize + Send + Sync + Unpin + 'static {}
pub trait Serialize: serde::Serialize + Send + Sync + 'static {}

impl<T> Serialize for T where T: serde::Serialize + Send + Sync + Unpin + 'static {}
impl<T> Serialize for T where T: serde::Serialize + Send + Sync + 'static {}

/// A deserializable type.
pub trait Deserialize: serde::de::DeserializeOwned + Send + Sync + Unpin + 'static {}
pub trait Deserialize: serde::de::DeserializeOwned + Send + Sync + 'static {}

impl<T> Deserialize for T where T: serde::de::DeserializeOwned + Send + Sync + Unpin + 'static {}
impl<T> Deserialize for T where T: serde::de::DeserializeOwned + Send + Sync + 'static {}

/// A duplex.
pub trait Duplex: Sink + Stream {}
Expand Down

0 comments on commit 43995c5

Please sign in to comment.