Skip to content

Commit fd43000

Browse files
committed
fix: use FnOnce as client acceptor instead of Fn
1 parent a99150a commit fd43000

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rsocket/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsocket_rust"
3-
version = "0.7.4"
3+
version = "0.7.5"
44
authors = ["Jeffsky <[email protected]>"]
55
edition = "2021"
66
license = "Apache-2.0"

rsocket/src/spi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use futures::Stream;
77
use crate::payload::{Payload, SetupPayload};
88
use crate::Result;
99

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

0 commit comments

Comments
 (0)