Update code to Rust 1.84.0 #14

Merged
cody merged 2 commits from topic/jb/update-rust into main 2025-01-20 22:46:37 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 9d4923d39d - Show all commits

View File

@ -2,7 +2,7 @@
echo "<<< Install Rust prerequisites >>>"
apt install -y curl
RUST_VERSION=1.78.0
RUST_VERSION=1.84.0
echo "<<< Install Rust $RUST_VERSION >>>"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$RUST_VERSION -y
. "$HOME/.cargo/env"

View File

@ -20,7 +20,7 @@ pub struct Reader<'a> {
impl<'a> Reader<'a> {
const CD_PREGAP_SECTORS:usize = Time::cd_pregap().as_sectors();
pub fn new(file: std::fs::File, data_type_guide: &'a Vec<DataTypeEnd>, unk_sector_behav: UnknownSectorBehavior) -> Result<Reader, Error> {
pub fn new(file: std::fs::File, data_type_guide: &Vec<DataTypeEnd>, unk_sector_behav: UnknownSectorBehavior) -> Result<Reader, Error> {
Ok(Reader{
file, data_type_guide, unk_sector_behav, lba: Self::CD_PREGAP_SECTORS, active: true
})