Skip to content

Commit bc25ba8

Browse files
committed
clippy
1 parent 6b02fc8 commit bc25ba8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/compute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl ComputeApi {
157157
pub fn listen(&self, endpoint: quinn::Endpoint) -> anyhow::Result<AbortOnDropHandle<()>> {
158158
match &self.inner {
159159
ServiceSender::Local(local, _) => {
160-
let local = LocalMpscChannel::from(local.clone());
160+
let local = local.clone();
161161
let handler: Handler<ComputeProtocol> = Arc::new(move |msg, rx: RemoteRead, tx| {
162162
let local = local.clone();
163163
Box::pin(match msg {

examples/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl StorageApi {
116116
pub fn listen(&self, endpoint: quinn::Endpoint) -> anyhow::Result<AbortOnDropHandle<()>> {
117117
match &self.inner {
118118
ServiceSender::Local(local, _) => {
119-
let local = LocalMpscChannel::from(local.clone());
119+
let local = local.clone();
120120
let handler: Handler<StorageProtocol> = Arc::new(move |msg, _, tx| {
121121
let local = local.clone();
122122
Box::pin(match msg {

examples/storage.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl StorageApi {
128128
pub fn listen(&self, endpoint: quinn::Endpoint) -> anyhow::Result<AbortOnDropHandle<()>> {
129129
match &self.inner {
130130
ServiceSender::Local(local, _) => {
131-
let local = LocalMpscChannel::from(local.clone());
131+
let local = local.clone();
132132
let handler: Handler<StorageProtocol> = Arc::new(move |msg, _rx, tx| {
133133
let local = local.clone();
134134
Box::pin(match msg {

0 commit comments

Comments
 (0)