Update Rust to latest version
This commit is contained in:
parent
8cd21d6faf
commit
9d4923d39d
|
@ -2,7 +2,7 @@
|
||||||
echo "<<< Install Rust prerequisites >>>"
|
echo "<<< Install Rust prerequisites >>>"
|
||||||
apt install -y curl
|
apt install -y curl
|
||||||
|
|
||||||
RUST_VERSION=1.78.0
|
RUST_VERSION=1.84.0
|
||||||
echo "<<< Install Rust $RUST_VERSION >>>"
|
echo "<<< Install Rust $RUST_VERSION >>>"
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$RUST_VERSION -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=$RUST_VERSION -y
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|
|
@ -20,7 +20,7 @@ pub struct Reader<'a> {
|
||||||
impl<'a> Reader<'a> {
|
impl<'a> Reader<'a> {
|
||||||
const CD_PREGAP_SECTORS:usize = Time::cd_pregap().as_sectors();
|
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{
|
Ok(Reader{
|
||||||
file, data_type_guide, unk_sector_behav, lba: Self::CD_PREGAP_SECTORS, active: true
|
file, data_type_guide, unk_sector_behav, lba: Self::CD_PREGAP_SECTORS, active: true
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue