Skip to content

Commit 129439a

Browse files
Joseph Rossbugadani
andauthored
Fix CI checks (#465)
* Adopt fork of gha-ubuntu-cross with apt update fix. * Fix new clippy warning. We really do want an array with a single Range member. * Update to better fix for gha-ubuntu-cross * Avoid updating clap to newer minor versions * Resolve incorrect_partial_ord_impl_on_ord_type clippy error --------- Co-authored-by: Dániel Buga <[email protected]>
1 parent c80b91b commit 129439a

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/actions/setup-arm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runs:
3333
- uses: Swatinem/rust-cache@v2
3434

3535
- name: Install Cross-Compile Support
36-
uses: cyberjunk/gha-ubuntu-cross@v3
36+
uses: junelife/gha-ubuntu-cross@v6
3737
with:
3838
arch: ${{ inputs.arch }}
3939

espflash/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ addr2line = { version = "0.20.0", optional = true }
3535
base64 = "0.21.2"
3636
binread = "2.2.0"
3737
bytemuck = { version = "1.13.1", features = ["derive"] }
38-
clap = { version = "4.3.11", features = ["derive", "env", "wrap_help"], optional = true }
39-
clap_complete = { version = "4.3.2", optional = true }
38+
clap = { version = "4.3.*", features = ["derive", "env", "wrap_help"], optional = true }
39+
clap_complete = { version = "4.3.*", optional = true }
4040
comfy-table = { version = "7.0.1", optional = true }
4141
crossterm = { version = "0.25.0", optional = true } # 0.26.x causes issues on Windows
4242
ctrlc = { version = "3.4.0", optional = true }

espflash/src/elf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl PartialEq for CodeSegment<'_> {
220220

221221
impl PartialOrd for CodeSegment<'_> {
222222
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
223-
self.addr.partial_cmp(&other.addr)
223+
Some(self.cmp(other))
224224
}
225225
}
226226

espflash/src/targets/esp8266.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::{
1313

1414
const CHIP_DETECT_MAGIC_VALUES: &[u32] = &[0xfff0_c101];
1515

16+
#[allow(clippy::single_range_in_vec_init)]
1617
const FLASH_RANGES: &[Range<u32>] = &[
1718
0x40200000..0x40300000, // IROM
1819
];

0 commit comments

Comments
 (0)