diff --git a/cross_compile.md b/cross_compile.md index 67b16421..612b304d 100644 --- a/cross_compile.md +++ b/cross_compile.md @@ -32,9 +32,7 @@ yum install mingw64-openssl-static mingw64-zlib-static mingw64-winpthreads-stati .define("CMAKE_SYSTEM_PROCESSOR", get_env("CARGO_CFG_TARGET_ARCH").unwrap()) .define("CMAKE_CROSSCOMPILING", "true") .build_target(library) - .uses_cxx11() .build() - // config.build_target(library).uses_cxx11().build() }; ``` diff --git a/src/call/client.rs b/src/call/client.rs index ca5de507..0c337884 100644 --- a/src/call/client.rs +++ b/src/call/client.rs @@ -436,8 +436,7 @@ impl StreamingCallSink { /// `enhance_batch` is enabled, messages will be batched together as many as possible. /// The rules are listed as below: /// - All messages except the last one will be sent with `buffer_hint` set to true. - /// - The last message will also be sent with `buffer_hint` set to true unless any message is - /// offered with buffer hint set to false. + /// - The last message will also be sent with `buffer_hint` set to true unless any message is offered with buffer hint set to false. /// /// No matter `enhance_batch` is true or false, it's recommended to follow the contract of /// Sink and call `poll_flush` to ensure messages are handled by gRPC C Core. diff --git a/src/call/server.rs b/src/call/server.rs index 43f9afd2..4aa3c568 100644 --- a/src/call/server.rs +++ b/src/call/server.rs @@ -481,8 +481,7 @@ macro_rules! impl_stream_sink { /// `enhance_batch` is enabled, messages will be batched together as many as possible. /// The rules are listed as below: /// - All messages except the last one will be sent with `buffer_hint` set to true. - /// - The last message will also be sent with `buffer_hint` set to true unless any message is - /// offered with buffer hint set to false. + /// - The last message will also be sent with `buffer_hint` set to true unless any message is offered with buffer hint set to false. /// /// No matter `enhance_batch` is true or false, it's recommended to follow the contract of /// Sink and call `poll_flush` to ensure messages are handled by gRPC C Core. diff --git a/src/metadata.rs b/src/metadata.rs index a3275f3f..94a3d239 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -143,18 +143,18 @@ impl Clone for MetadataBuilder { /// /// - Request headers /// -/// They are sent by the client at the beginning of a remote call before -/// any request messages are sent. +/// They are sent by the client at the beginning of a remote call before +/// any request messages are sent. /// /// - Response headers /// -/// They are sent by the server at the beginning of a remote call handler -/// before any response messages are sent. +/// They are sent by the server at the beginning of a remote call handler +/// before any response messages are sent. /// /// - Response trailers /// -/// They are sent by the server at the end of a remote call along with -/// resulting call status. +/// They are sent by the server at the end of a remote call along with +/// resulting call status. /// /// Metadata value can be ascii string or bytes. They are distinguish by the /// key suffix, key of bytes value should have suffix '-bin'.