Skip to content

Commit

Permalink
fix: use FnOnce as client acceptor instead of Fn
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeffcaii committed Dec 26, 2023
1 parent a99150a commit fd43000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rsocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsocket_rust"
version = "0.7.4"
version = "0.7.5"
authors = ["Jeffsky <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion rsocket/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use futures::Stream;
use crate::payload::{Payload, SetupPayload};
use crate::Result;

pub type ClientResponder = Box<dyn Send + Sync + Fn() -> Box<dyn RSocket>>;
pub type ClientResponder = Box<dyn Send + Sync + FnOnce() -> Box<dyn RSocket>>;
pub type ServerResponder =
Box<dyn Send + Sync + Fn(SetupPayload, Box<dyn RSocket>) -> Result<Box<dyn RSocket>>>;

Expand Down

0 comments on commit fd43000

Please sign in to comment.