Skip to content

Commit

Permalink
build: suppress clippy::wildcard_imports in generated code (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice authored Sep 9, 2024
1 parent a30f4c1 commit 626b094
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
1 change: 1 addition & 0 deletions tonic-build/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub(crate) fn generate_internal<T: Service>(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
// will trigger if compression is disabled
clippy::let_unit_value,
)]
Expand Down
1 change: 1 addition & 0 deletions tonic-build/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub(crate) fn generate_internal<T: Service>(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
// will trigger if compression is disabled
clippy::let_unit_value,
)]
Expand Down
16 changes: 14 additions & 2 deletions tonic-health/src/generated/grpc_health_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ pub mod health_check_response {
}
/// Generated client implementations.
pub mod health_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -198,7 +204,13 @@ pub mod health_client {
}
/// Generated server implementations.
pub mod health_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
/// Generated trait containing gRPC methods that should be implemented for use with HealthServer.
#[async_trait]
Expand Down
16 changes: 14 additions & 2 deletions tonic-reflection/src/generated/grpc_reflection_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ pub struct ErrorResponse {
}
/// Generated client implementations.
pub mod server_reflection_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -255,7 +261,13 @@ pub mod server_reflection_client {
}
/// Generated server implementations.
pub mod server_reflection_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
/// Generated trait containing gRPC methods that should be implemented for use with ServerReflectionServer.
#[async_trait]
Expand Down
16 changes: 14 additions & 2 deletions tonic-reflection/src/generated/grpc_reflection_v1alpha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ pub struct ErrorResponse {
}
/// Generated client implementations.
pub mod server_reflection_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -255,7 +261,13 @@ pub mod server_reflection_client {
}
/// Generated server implementations.
pub mod server_reflection_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
/// Generated trait containing gRPC methods that should be implemented for use with ServerReflectionServer.
#[async_trait]
Expand Down

0 comments on commit 626b094

Please sign in to comment.