Skip to content

Commit

Permalink
bump min supported version to 1.65
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Messenger authored and Billy Messenger committed Jan 4, 2024
1 parent 87656b1 commit 7900f79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

# Minimum Supported Rust Version (MSRV)
- os: ubuntu-latest
rust: 1.62.0
rust: 1.65.0
workspace-extra-args: "--exclude player --exclude writer"

steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Improved performance when decoding near the end of a file
- Improved the accuracy when seeking to a large frame value with the Symphonia decoder
- Bumped minimum supported Rust version to 1.65

## Version 1.2.0 (2023-12-28)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ include = [
"LICENSE-MIT",
"how_it_works.svg",
]
rust-version = "1.62"
rust-version = "1.65"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
4 changes: 1 addition & 3 deletions core/src/read/read_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ fn copy_block_into_read_buffer<T: Copy + Default + Send>(
}
};

if maybe_block.is_none() {
let Some(block) = maybe_block else {
// If no block exists, output silence.
for buffer_ch in heap.read_buffer.block.iter_mut() {
buffer_ch.resize(buffer_ch.len() + frames, Default::default());
Expand All @@ -919,8 +919,6 @@ fn copy_block_into_read_buffer<T: Copy + Default + Send>(
return;
};

let block = maybe_block.unwrap();

for (buffer_ch, block_ch) in heap.read_buffer.block.iter_mut().zip(block.block.iter()) {
// If for some reason the decoder did not fill this block fully,
// fill the rest with zeros.
Expand Down

0 comments on commit 7900f79

Please sign in to comment.