Skip to content

Commit 5d5ac2b

Browse files
committed
Suppress warnings
1 parent a55de8e commit 5d5ac2b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sea-streamer-socket/src/connect_options.rs

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ impl ConnectOptions for SeaConnectOptions {
7474
type Error = BackendErr;
7575

7676
fn timeout(&self) -> SeaResult<Duration> {
77+
#![allow(unreachable_code)]
78+
7779
#[cfg(feature = "backend-kafka")]
7880
return self.kafka.timeout().map_err(map_err);
7981
#[cfg(feature = "backend-redis")]

sea-streamer-socket/src/consumer_options.rs

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ impl ConsumerOptions for SeaConsumerOptions {
117117

118118
/// Get currently set ConsumerMode
119119
fn mode(&self) -> SeaResult<&ConsumerMode> {
120+
#![allow(unreachable_code)]
121+
120122
#[cfg(feature = "backend-kafka")]
121123
return self.kafka.mode().map_err(map_err);
122124
#[cfg(feature = "backend-redis")]
@@ -129,6 +131,8 @@ impl ConsumerOptions for SeaConsumerOptions {
129131

130132
/// Get currently set consumer group; may return `StreamErr::ConsumerGroupNotSet`.
131133
fn consumer_group(&self) -> SeaResult<&ConsumerGroup> {
134+
#![allow(unreachable_code)]
135+
132136
#[cfg(feature = "backend-kafka")]
133137
return self.kafka.consumer_group().map_err(map_err);
134138
#[cfg(feature = "backend-redis")]

0 commit comments

Comments
 (0)