Skip to content

Commit

Permalink
Removing the last extern crate macro use old idiom
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Nov 7, 2024
1 parent e590855 commit 55b8a2b
Show file tree
Hide file tree
Showing 16 changed files with 101 additions and 100 deletions.
4 changes: 2 additions & 2 deletions quickwit/quickwit-proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

tonic_build::configure()
.enum_attribute(".", "#[serde(rename_all=\"snake_case\")]")
.type_attribute(".", "#[derive(Serialize, Deserialize, utoipa::ToSchema)]")
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize, utoipa::ToSchema)]")
.type_attribute("PartialHit", "#[derive(Eq, Hash)]")
.type_attribute("PartialHit.sort_value", "#[derive(Copy)]")
.type_attribute("SearchRequest", "#[derive(Eq, Hash)]")
Expand Down Expand Up @@ -214,7 +214,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let protos = find_protos("protos/third-party/opentelemetry");
tonic_build::configure()
.type_attribute(".", "#[derive(Serialize, Deserialize)]")
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.type_attribute("StatusCode", r#"#[serde(rename_all = "snake_case")]"#)
.type_attribute(
"ExportLogsServiceResponse",
Expand Down
1 change: 1 addition & 0 deletions quickwit/quickwit-proto/src/cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ use quickwit_common::rate_limited_error;
use quickwit_common::tower::MakeLoadShedError;
use thiserror;

use serde::{Serialize, Deserialize};
use crate::error::{ServiceError, ServiceErrorCode};
use crate::GrpcServiceError;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 55b8a2b

Please sign in to comment.