File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ impl ConnectOptions for SeaConnectOptions {
74
74
type Error = BackendErr ;
75
75
76
76
fn timeout ( & self ) -> SeaResult < Duration > {
77
+ #![ allow( unreachable_code) ]
78
+
77
79
#[ cfg( feature = "backend-kafka" ) ]
78
80
return self . kafka . timeout ( ) . map_err ( map_err) ;
79
81
#[ cfg( feature = "backend-redis" ) ]
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ impl ConsumerOptions for SeaConsumerOptions {
117
117
118
118
/// Get currently set ConsumerMode
119
119
fn mode ( & self ) -> SeaResult < & ConsumerMode > {
120
+ #![ allow( unreachable_code) ]
121
+
120
122
#[ cfg( feature = "backend-kafka" ) ]
121
123
return self . kafka . mode ( ) . map_err ( map_err) ;
122
124
#[ cfg( feature = "backend-redis" ) ]
@@ -129,6 +131,8 @@ impl ConsumerOptions for SeaConsumerOptions {
129
131
130
132
/// Get currently set consumer group; may return `StreamErr::ConsumerGroupNotSet`.
131
133
fn consumer_group ( & self ) -> SeaResult < & ConsumerGroup > {
134
+ #![ allow( unreachable_code) ]
135
+
132
136
#[ cfg( feature = "backend-kafka" ) ]
133
137
return self . kafka . consumer_group ( ) . map_err ( map_err) ;
134
138
#[ cfg( feature = "backend-redis" ) ]
You can’t perform that action at this time.
0 commit comments