Skip to content

Commit 697da61

Browse files
committed
don't use indirect ref to flags
Signed-off-by: Xintao <[email protected]>
1 parent c133a57 commit 697da61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/call/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,12 +616,12 @@ impl WriteFlags {
616616
}
617617

618618
/// Get whether buffer hint is enabled.
619-
pub fn get_buffer_hint(&self) -> bool {
619+
pub fn get_buffer_hint(self) -> bool {
620620
(self.flags & grpc_sys::GRPC_WRITE_BUFFER_HINT) != 0
621621
}
622622

623623
/// Get whether compression is disabled.
624-
pub fn get_force_no_compress(&self) -> bool {
624+
pub fn get_force_no_compress(self) -> bool {
625625
(self.flags & grpc_sys::GRPC_WRITE_NO_COMPRESS) != 0
626626
}
627627
}

0 commit comments

Comments
 (0)