Skip to content

Commit 31cdb29

Browse files
committed
Fix legacy numeric constants rendering errors in rust nightly
1 parent c21cbb1 commit 31cdb29

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/stream.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ impl<'ctx> PulseStream<'ctx> {
447447
latency_frames * stm.output_sample_spec.frame_size() as u32;
448448

449449
let battr = pa_buffer_attr {
450-
maxlength: u32::max_value(),
451-
prebuf: u32::max_value(),
452-
fragsize: u32::max_value(),
450+
maxlength: u32::MAX,
451+
prebuf: u32::MAX,
452+
fragsize: u32::MAX,
453453
tlength: buffer_size_bytes * 2,
454454
minreq: buffer_size_bytes / 4,
455455
};
@@ -490,8 +490,8 @@ impl<'ctx> PulseStream<'ctx> {
490490
let buffer_size_bytes =
491491
latency_frames * stm.input_sample_spec.frame_size() as u32;
492492
let battr = pa_buffer_attr {
493-
maxlength: u32::max_value(),
494-
prebuf: u32::max_value(),
493+
maxlength: u32::MAX,
494+
prebuf: u32::MAX,
495495
fragsize: buffer_size_bytes,
496496
tlength: buffer_size_bytes,
497497
minreq: buffer_size_bytes,

0 commit comments

Comments
 (0)