vector: fix build with rustc 1.75

This commit is contained in:
Luka Blaskovic 2024-01-15 08:50:14 +00:00 committed by Jonathan Davies
parent 0cc5d8ad91
commit 3606478738
2 changed files with 27 additions and 0 deletions

View File

@ -99,6 +99,8 @@ rustPlatform.buildRustPackage {
"--skip=sources::aws_kinesis_firehose::tests::handles_acknowledgement_failure"
];
patches = [ ./vector-pr19518.patch ];
# recent overhauls of DNS support in 0.9 mean that we try to resolve
# vector.dev during the checkPhase, which obviously isn't going to work.
# these tests in the DNS module are trivial though, so stubbing them out is

View File

@ -0,0 +1,25 @@
diff --git a/src/config/loading/mod.rs b/src/config/loading/mod.rs
index 58c464a58..40656fd29 100644
--- a/src/config/loading/mod.rs
+++ b/src/config/loading/mod.rs
@@ -13,7 +13,6 @@ use std::{
};
use config_builder::ConfigBuilderLoader;
-pub use config_builder::*;
use glob::glob;
use loader::process::Process;
pub use loader::*;
diff --git a/src/sinks/prometheus/remote_write/mod.rs b/src/sinks/prometheus/remote_write/mod.rs
index 3ebda7df8..cf5b37a70 100644
--- a/src/sinks/prometheus/remote_write/mod.rs
+++ b/src/sinks/prometheus/remote_write/mod.rs
@@ -24,8 +24,6 @@ mod tests;
#[cfg(all(test, feature = "prometheus-integration-tests"))]
mod integration_tests;
-pub use config::RemoteWriteConfig;
-
#[derive(Debug, Snafu)]
enum Errors {
#[cfg(feature = "aws-core")]