Skip to content

Commit 20271a2

Browse files
committed
mac openssl ci issues Signed-off-by: Taddes <[email protected]>
Signed-off-by: Taddes <[email protected]>
1 parent 8f4e521 commit 20271a2

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

src/call/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ impl<Req> StreamingCallSink<Req> {
437437
/// The rules are listed as below:
438438
/// - All messages except the last one will be sent with `buffer_hint` set to true.
439439
/// - The last message will also be sent with `buffer_hint` set to true unless any message is
440-
/// offered with buffer hint set to false.
440+
/// offered with buffer hint set to false.
441441
///
442442
/// No matter `enhance_batch` is true or false, it's recommended to follow the contract of
443443
/// Sink and call `poll_flush` to ensure messages are handled by gRPC C Core.

src/call/server.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ macro_rules! impl_stream_sink {
482482
/// The rules are listed as below:
483483
/// - All messages except the last one will be sent with `buffer_hint` set to true.
484484
/// - The last message will also be sent with `buffer_hint` set to true unless any message is
485-
/// offered with buffer hint set to false.
485+
/// offered with buffer hint set to false.
486486
///
487487
/// No matter `enhance_batch` is true or false, it's recommended to follow the contract of
488488
/// Sink and call `poll_flush` to ensure messages are handled by gRPC C Core.
@@ -617,24 +617,24 @@ macro_rules! impl_stream_sink {
617617
}
618618

619619
impl_stream_sink!(
620-
/// A sink for server streaming call.
621-
///
622-
/// To close the sink properly, you should call [`close`] or [`fail`] before dropping.
623-
///
624-
/// [`close`]: #method.close
625-
/// [`fail`]: #method.fail
620+
/// A sink for server streaming call.
621+
///
622+
/// To close the sink properly, you should call [`close`] or [`fail`] before dropping.
623+
///
624+
/// [`close`]: #method.close
625+
/// [`fail`]: #method.fail
626626
#[must_use = "if unused the sink may immediately cancel the RPC"]
627627
ServerStreamingSink,
628628
ServerStreamingSinkFailure,
629629
ShareCall
630630
);
631631
impl_stream_sink!(
632-
/// A sink for duplex streaming call.
633-
///
634-
/// To close the sink properly, you should call [`close`] or [`fail`] before dropping.
635-
///
636-
/// [`close`]: #method.close
637-
/// [`fail`]: #method.fail
632+
/// A sink for duplex streaming call.
633+
///
634+
/// To close the sink properly, you should call [`close`] or [`fail`] before dropping.
635+
///
636+
/// [`close`]: #method.close
637+
/// [`fail`]: #method.fail
638638
#[must_use = "if unused the sink may immediately cancel the RPC"]
639639
DuplexSink,
640640
DuplexSinkFailure,
@@ -648,7 +648,7 @@ pub struct RpcContext<'a> {
648648
deadline: Deadline,
649649
}
650650

651-
impl<'a> RpcContext<'a> {
651+
impl RpcContext<'_> {
652652
fn new(ctx: RequestContext, cq: &CompletionQueue) -> RpcContext<'_> {
653653
RpcContext {
654654
deadline: ctx.deadline(),

src/cq.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ pub struct CompletionQueueRef<'a> {
117117
queue: &'a CompletionQueue,
118118
}
119119

120-
impl<'a> CompletionQueueRef<'a> {
120+
impl CompletionQueueRef<'_> {
121121
pub fn as_ptr(&self) -> *mut grpc_completion_queue {
122122
self.queue.handle.cq
123123
}
124124
}
125125

126-
impl<'a> Drop for CompletionQueueRef<'a> {
126+
impl Drop for CompletionQueueRef<'_> {
127127
fn drop(&mut self) {
128128
self.queue.handle.unref();
129129
}

src/metadata.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,18 @@ impl Clone for MetadataBuilder {
143143
///
144144
/// - Request headers
145145
///
146-
/// They are sent by the client at the beginning of a remote call before
147-
/// any request messages are sent.
146+
/// They are sent by the client at the beginning of a remote call before
147+
/// any request messages are sent.
148148
///
149149
/// - Response headers
150150
///
151-
/// They are sent by the server at the beginning of a remote call handler
152-
/// before any response messages are sent.
151+
/// They are sent by the server at the beginning of a remote call handler
152+
/// before any response messages are sent.
153153
///
154154
/// - Response trailers
155155
///
156-
/// They are sent by the server at the end of a remote call along with
157-
/// resulting call status.
156+
/// They are sent by the server at the end of a remote call along with
157+
/// resulting call status.
158158
///
159159
/// Metadata value can be ascii string or bytes. They are distinguish by the
160160
/// key suffix, key of bytes value should have suffix '-bin'.

src/task/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub(crate) struct Executor<'a> {
233233
cq: &'a CompletionQueue,
234234
}
235235

236-
impl<'a> Executor<'a> {
236+
impl Executor<'_> {
237237
pub fn new(cq: &CompletionQueue) -> Executor<'_> {
238238
Executor { cq }
239239
}

0 commit comments

Comments
 (0)