From a1ef5ce71897a0f1652c890787e8672aa23e2ff0 Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Wed, 15 May 2024 14:01:02 +0200 Subject: [PATCH] Fix legacy numeric constants rendering errors in rust nightly --- src/backend/stream.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/stream.rs b/src/backend/stream.rs index 6d595e9..a1740eb 100644 --- a/src/backend/stream.rs +++ b/src/backend/stream.rs @@ -447,9 +447,9 @@ impl<'ctx> PulseStream<'ctx> { latency_frames * stm.output_sample_spec.frame_size() as u32; let battr = pa_buffer_attr { - maxlength: u32::max_value(), - prebuf: u32::max_value(), - fragsize: u32::max_value(), + maxlength: u32::MAX, + prebuf: u32::MAX, + fragsize: u32::MAX, tlength: buffer_size_bytes * 2, minreq: buffer_size_bytes / 4, }; @@ -490,8 +490,8 @@ impl<'ctx> PulseStream<'ctx> { let buffer_size_bytes = latency_frames * stm.input_sample_spec.frame_size() as u32; let battr = pa_buffer_attr { - maxlength: u32::max_value(), - prebuf: u32::max_value(), + maxlength: u32::MAX, + prebuf: u32::MAX, fragsize: buffer_size_bytes, tlength: buffer_size_bytes, minreq: buffer_size_bytes,