Skip to content

Commit 51aadb7

Browse files
committed
lint: allow dead code in prost generated pb codes
To suppress Clippy’s "struct is never constructed" warning since 1.89.0
1 parent bfb0946 commit 51aadb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/channel.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub trait BalancedChannelBuilder {
2020
}
2121

2222
/// Create a simple Tonic channel.
23+
#[allow(dead_code)]
2324
pub struct Tonic;
2425

2526
impl BalancedChannelBuilder for Tonic {

0 commit comments

Comments
 (0)