vector: fix build against rust 1.66

authored by Theodore Ni and committed by Yt 108f65bb 26d95bda

+18
+5
pkgs/tools/misc/vector/default.nix
··· 45 sha256 = pinData.sha256; 46 }; 47 48 cargoSha256 = pinData.cargoSha256; 49 nativeBuildInputs = [ pkg-config cmake perl ]; 50 buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
··· 45 sha256 = pinData.sha256; 46 }; 47 48 + patches = [ 49 + # replace with https://github.com/vectordotdev/vector/pull/15093 when ready 50 + ./fix-for-rust-1.66.diff 51 + ]; 52 + 53 cargoSha256 = pinData.cargoSha256; 54 nativeBuildInputs = [ pkg-config cmake perl ]; 55 buildInputs = [ oniguruma openssl protobuf rdkafka zstd ]
+13
pkgs/tools/misc/vector/fix-for-rust-1.66.diff
···
··· 1 + diff --git a/src/sources/aws_kinesis_firehose/filters.rs b/src/sources/aws_kinesis_firehose/filters.rs 2 + index ac33682..fe65ed4 100644 3 + --- a/src/sources/aws_kinesis_firehose/filters.rs 4 + +++ b/src/sources/aws_kinesis_firehose/filters.rs 5 + @@ -28,7 +28,7 @@ pub fn firehose( 6 + acknowledgements: bool, 7 + out: SourceSender, 8 + log_namespace: LogNamespace, 9 + -) -> impl Filter<Extract = impl warp::Reply, Error = Infallible> + Clone { 10 + +) -> impl Filter<Extract = (impl warp::Reply,), Error = Infallible> + Clone { 11 + let bytes_received = register!(BytesReceived::from(Protocol::HTTP)); 12 + let context = handlers::Context { 13 + compression: record_compression,