MSRV
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@1.85.0
|
||||
- uses: dtolnay/rust-toolchain@1.86.0
|
||||
- run: cargo check --release
|
||||
|
||||
cross-check:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "cfdp-rs"
|
||||
version = "0.2.0"
|
||||
edition = "2024"
|
||||
rust-version = "1.85.0"
|
||||
rust-version = "1.86.0"
|
||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||
description = "High level CCSDS File Delivery Protocol components"
|
||||
homepage = "https://egit.irs.uni-stuttgart.de/rust/cfdp"
|
||||
|
||||
@@ -121,10 +121,10 @@ impl LostSegmentStore for LostSegmentsMap {
|
||||
if lost_seg.0 > lost_seg.1 {
|
||||
return Err(LostSegmentError::StartLargerThanEnd(lost_seg));
|
||||
}
|
||||
if let Some(capacity) = self.opt_capacity
|
||||
&& self.map.len() == capacity
|
||||
{
|
||||
return Err(LostSegmentError::StoreFull);
|
||||
if let Some(capacity) = self.opt_capacity {
|
||||
if self.map.len() == capacity {
|
||||
return Err(LostSegmentError::StoreFull);
|
||||
}
|
||||
}
|
||||
self.map.insert(lost_seg);
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user