Skip to content

Commit a1baecd

Browse files
authored
Merge pull request #1618 from HuijingHei/bump-rust
Cargo.toml: bump MSRV to 1.84.1
2 parents b5206fa + 36bf990 commit a1baecd

File tree

10 files changed

+49
-55
lines changed

10 files changed

+49
-55
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
CARGO_TERM_COLOR: always
1818
RUST_BACKTRACE: 1
1919
# Pinned toolchain for linting
20-
ACTIONS_LINTS_TOOLCHAIN: 1.77.2
20+
ACTIONS_LINTS_TOOLCHAIN: 1.84.1
2121

2222
defaults:
2323
run:

Cargo.lock

Lines changed: 35 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "coreos-installer"
33
repository = "https://github.com/coreos/coreos-installer"
44
license = "Apache-2.0"
55
edition = "2021"
6-
rust-version = "1.75.0"
6+
rust-version = "1.84.1"
77
exclude = ["/.cci.jenkinsfile", "/.github", "/.gitignore", "/Dockerfile"]
88
authors = [ "Benjamin Gilbert <bgilbert@redhat.com>" ]
99
description = "Installer for Fedora CoreOS and RHEL CoreOS"

docs/release-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Internal changes:
1919
Packaging changes:
2020

2121
- Update container to Fedora 41
22-
- Require `byte-unit` ≥ 5.1.6
22+
- Require `byte-unit` ≥ 5.1.6
23+
- Require Rust ≥ 1.84.1
2324

2425
## coreos-installer 0.23.0 (2024-11-12)
2526

src/cmdline/serializer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl Serializer {
8484
// - String/number primitives => add option argument, then value
8585
// https://serde.rs/impl-serializer.html
8686
// https://docs.serde.rs/serde/trait.Serializer.html
87-
impl<'a> ser::Serializer for &'a mut Serializer {
87+
impl ser::Serializer for &mut Serializer {
8888
type Ok = ();
8989
type Error = SerializeError;
9090
type SerializeSeq = Self;
@@ -260,7 +260,7 @@ impl<'a> ser::Serializer for &'a mut Serializer {
260260
}
261261
}
262262

263-
impl<'a> ser::SerializeSeq for &'a mut Serializer {
263+
impl ser::SerializeSeq for &mut Serializer {
264264
type Ok = ();
265265
type Error = SerializeError;
266266

@@ -276,7 +276,7 @@ impl<'a> ser::SerializeSeq for &'a mut Serializer {
276276
}
277277
}
278278

279-
impl<'a> ser::SerializeStruct for &'a mut Serializer {
279+
impl ser::SerializeStruct for &mut Serializer {
280280
type Ok = ();
281281
type Error = SerializeError;
282282

src/download.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl<'a, R: Read> ProgressReader<'a, R> {
462462
}
463463
}
464464

465-
impl<'a, R: Read> Read for ProgressReader<'a, R> {
465+
impl<R: Read> Read for ProgressReader<'_, R> {
466466
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
467467
let count = self.source.read(buf)?;
468468
self.position += count as u64;
@@ -494,7 +494,7 @@ impl<'a, R: Read> Read for ProgressReader<'a, R> {
494494
}
495495
}
496496

497-
impl<'a, R: Read> Drop for ProgressReader<'a, R> {
497+
impl<R: Read> Drop for ProgressReader<'_, R> {
498498
fn drop(&mut self) {
499499
// if we reported progress using CRs, log final newline
500500
if self.tty {

src/iso9660.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,14 @@ pub struct IsoFsWalkIterator<'a> {
371371
dirpath: PathBuf,
372372
}
373373

374-
impl<'a> Iterator for IsoFsWalkIterator<'a> {
374+
impl Iterator for IsoFsWalkIterator<'_> {
375375
type Item = Result<(String, DirectoryRecord)>;
376376
fn next(&mut self) -> Option<Self::Item> {
377377
self.walk_iterator_next().transpose()
378378
}
379379
}
380380

381-
impl<'a> IsoFsWalkIterator<'a> {
381+
impl IsoFsWalkIterator<'_> {
382382
// This is simply split out of next() above for easier error-handling
383383
fn walk_iterator_next(&mut self) -> Result<Option<(String, DirectoryRecord)>> {
384384
while let Some(ref mut current_dir) = self.current_dir {

src/osmet/fiemap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ mod ffi {
169169
pub fn new() -> Self {
170170
let mut r: Self = unsafe { zeroed() };
171171
r.fm_extent_count = EXTENT_COUNT as u32;
172-
r.fm_length = std::u64::MAX;
172+
r.fm_length = u64::MAX;
173173
r
174174
}
175175
}

src/s390x/dasd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ pub(crate) struct Range {
3939
/// - ECKD (Extended Count Key Data) - is regular DASD of type 3390
4040
/// - FBA (Fixed Block Access) - is used for emulated device that represents a real SCSI device
4141
/// - Virt - ECKD on LPAR/zKVM as virtio-device
42+
///
4243
/// Only ECKD disks require `dasdfmt, fdasd` linux tools to be configured.
4344
enum DasdType {
4445
Eckd,

src/s390x/eckd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn partition_ranges(device: &mut File, first_mb: &[u8]) -> Result<(Vec<Range>, V
8080
out_offset: start_track * blocks_per_track * bytes_per_block,
8181
length: blocks * bytes_per_block,
8282
});
83-
let end_track = start_track + (blocks + blocks_per_track - 1) / blocks_per_track - 1;
83+
let end_track = start_track + blocks.div_ceil(blocks_per_track) - 1;
8484

8585
if idx == last {
8686
entries.push(format!("[{start_track}, last, native]"));

0 commit comments

Comments
 (0)