Skip to content

Commit 6e808c2

Browse files
committed
Bumped MSRV to v1.75
1 parent 0ebf596 commit 6e808c2

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
msrv = "1.73.0"
1+
msrv = "1.75.0"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
99

1010
- Updated the Github Actions CI to resolve the dependencies for the MSRV with cargo resolver v3.
1111
- Renamed the 'utilities' feature to 'utils' and removed it from the default build
12+
- Bumped MSRV to v1.75 to appease dependencies.
1213
- Bumped dependencies
1314
- clap v4.4
1415
- thiserror v2.0

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "industrial-io"
33
version = "0.6.1-pre.0"
44
edition = "2021"
5-
rust-version = "1.73.0"
5+
rust-version = "1.75"
66
authors = ["Frank Pagliughi <[email protected]>"]
77
repository = "https://github.com/fpagliughi/rust-industrial-io"
88
license = "MIT"

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ Contributions are particularly welcome for any adjustments or feedback pertainin
2626

2727
New examples for different hardware are also requested.
2828

29-
## MSRV v1.73
29+
## MSRV v1.75
3030

31-
The current version has a Minimum Supported Rust Version (MSRV) of v1.73.0
31+
The current version has a Minimum Supported Rust Version (MSRV) of v1.75.0
3232

33-
This crate is typically used in Embedded Linux projects, where compilers are not often upgraded. Thus the MSRV may lag the current stable by a considerable number of releases. We typically do not update the MSRV in minor version releases to keep from breaking dependent code. This restriction may be loosened up in the near future now that the Cargo resolver v3 is available, and is MSRV-aware.
34-
[Cargo Resolver v3](https://doc.rust-lang.org/edition-guide/rust-2024/cargo-resolver.html)
33+
This crate is typically used in Embedded Linux projects, where compilers are not often upgraded. Thus the MSRV may lag the current stable by a considerable number of releases.
3534

3635
## Latest News
3736

examples/riio_bufavg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ fn run() -> Result<()> {
287287
let ts: u64 = if let Some(ref chan) = ts_chan {
288288
buf.channel_iter::<u64>(chan)
289289
.nth(n_sample - 1)
290-
.map(|&x| x)
290+
.copied()
291291
.unwrap_or_default()
292292
}
293293
else {

examples/riio_free_scan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn main() {
9090
}
9191

9292
for chan in dev.channels() {
93-
let data: Vec<u16> = buf.channel_iter::<u16>(&chan).map(|&x| x).collect();
93+
let data: Vec<u16> = buf.channel_iter::<u16>(&chan).copied().collect();
9494
println!("{}: {:?}", chan.id().unwrap_or_default(), data);
9595
}
9696
}

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ mod tests {
267267

268268
#[test]
269269
fn test_sys_result() {
270-
assert!(matches!(sys_result(-1, "hello"), Err(_)));
270+
assert!(sys_result(-1, "hello").is_err());
271271
assert!(matches!(sys_result(1, "hello"), Ok("hello")));
272272
}
273273

@@ -277,10 +277,10 @@ mod tests {
277277
assert_eq!(val, 123);
278278

279279
let val = bool::from_attr("1").unwrap();
280-
assert_eq!(val, true);
280+
assert!(val);
281281

282282
let val: bool = FromAttribute::from_attr(" 0 \n").unwrap();
283-
assert_eq!(val, false);
283+
assert!(!val);
284284

285285
let val: String = String::from_attr("hello").unwrap();
286286
assert_eq!(&val, "hello");

0 commit comments

Comments
 (0)