Skip to content

Commit

Permalink
fix(Grpc): 🚑 Fix feature gate error
Browse files Browse the repository at this point in the history
  • Loading branch information
KAIYOHUGO committed Jul 2, 2024
1 parent efcccd6 commit 551c44e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions grpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
#[cfg(feature = "wkt")]
#[allow(clippy::all, non_local_definitions)]
pub mod backend {
tonic::include_proto!("oj.backend");
}

#[cfg(feature = "backend")]
#[cfg(not(feature = "wkt"))]
#[allow(clippy::all, non_local_definitions)]
pub mod backend {
tonic::include_proto!("oj.backend");
}

#[cfg(feature = "backend")]
#[cfg(feature = "judger")]
#[allow(clippy::all, non_local_definitions)]
pub mod judger {
tonic::include_proto!("oj.judger");
Expand Down

0 comments on commit 551c44e

Please sign in to comment.